标签:int list add mis logs com false code set
for(Stall stall : stallList){ boolean flag = false; for(DeliveryStallCommission deliveryStallCommission : riderList){ if(stall.getId() ==deliveryStallCommission.getStallId().longValue()){ flag=true; break; } } if(!flag){//表示stallList 的stall.getid值不存在于 riderList 的delivertStallCommission.getStallId DeliveryStallCommission deliveryStallCommission = new DeliveryStallCommission(); deliveryStallCommission.setStallId(stall.getId().intValue()); deliveryStallCommission.setStallName(stall.getName()); riderList.add(deliveryStallCommission); } }
标签:int list add mis logs com false code set
原文地址:http://www.cnblogs.com/SHMILYHP/p/7458053.html