|
|
|
@@ -489,7 +489,30 @@ public class WxAgileContractServiceImpl implements WxAgileContractService { |
|
|
|
WxRentContractAgileUnDepositItem itemq = new WxRentContractAgileUnDepositItem(); |
|
|
|
itemq.updateTenantInfo(ud); |
|
|
|
itemq.setUnDepositId(ud.getId()); |
|
|
|
ud.setItems(wxRentContractAgileUnDepositItemMapper.findList(itemq)); |
|
|
|
List<WxRentContractAgileUnDepositItem> itemList = wxRentContractAgileUnDepositItemMapper.findList(itemq); |
|
|
|
ud.setItems(itemList); |
|
|
|
if (null != itemList && itemList.size() > 0 ) { |
|
|
|
if (ud.getSettingMethod().intValue() == EnumRentContractAgilSettingMethod.BY_SHOP.getCode().intValue()) { |
|
|
|
List<Long> shopIds = wxRentContractAgileUnDepositItemMapper.findShopIdList(itemq); |
|
|
|
if (null != shopIds && shopIds.size() > 0 ) { |
|
|
|
WxShop sq = new WxShop(); |
|
|
|
sq.updateTenantInfo(ud); |
|
|
|
sq.setIds(shopIds); |
|
|
|
Map<Long,WxShop> shopMap = wxShopService.findShopMap(sq); |
|
|
|
if (null != shopMap) { |
|
|
|
for (int i = 0 ; i < itemList.size() ; i ++ ){ |
|
|
|
WxRentContractAgileUnDepositItem item = itemList.get(i); |
|
|
|
if (null != item.getShopId()) { |
|
|
|
WxShop shop = shopMap.get(item.getShopId()); |
|
|
|
if (null != shop) { |
|
|
|
item.setShopNumber(shop.getShopNumber()); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return ud; |
|
|
|
} |
|
|
|
|
|
|
|
|