|
|
|
@@ -419,18 +419,17 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
}
|
|
|
|
//查询rent_info 包括 shopId
|
|
|
|
String shopIdStr = "";
|
|
|
|
BigDecimal rentArea = new BigDecimal(0);
|
|
|
|
for (int i = 0; i < size; i++) {
|
|
|
|
JSONObject rentInfoObject = rentInfoArray.getJSONObject(i);
|
|
|
|
WxRentContract wxRentContract = new WxRentContract();
|
|
|
|
wxRentContract.updateTenantInfo(record);
|
|
|
|
Long shopId = rentInfoObject.getLong("id");
|
|
|
|
//wxRentContract.setShopId(shopId);
|
|
|
|
String shopNumber = rentInfoObject.getString("shopNumber");
|
|
|
|
rentArea = rentArea.add(new BigDecimal(rentInfoObject.getString("rentArea")));
|
|
|
|
if (!shopList.contains(shopId)) {
|
|
|
|
shopList.add(shopId);
|
|
|
|
shopIdStr = shopIdStr +","+ shopId;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
record.setRentArea(rentArea.toPlainString());
|
|
|
|
setShops(record,shopList);
|
|
|
|
//关联客户
|
|
|
|
setCustomers(record);
|
|
|
|
|