|
|
|
@@ -350,10 +350,15 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
WxShop shopq = new WxShop(); |
|
|
|
shopq.updateTenantInfo(record); |
|
|
|
shopq.setIds(shopIds); |
|
|
|
List<WxShop> sh = wxShopService.selectList(shopq); |
|
|
|
if (null != sh) { |
|
|
|
record.setRentInfo(JSON.toJSONString(sh)); |
|
|
|
List<WxShop> shlist = wxShopService.selectList(shopq); |
|
|
|
BigDecimal rentArea = new BigDecimal(0); |
|
|
|
for (int i = 0 ; i< shlist.size(); i ++) { |
|
|
|
rentArea = rentArea.add(new BigDecimal(shlist.get(i).getOperationArea())); |
|
|
|
} |
|
|
|
if (null != shlist) { |
|
|
|
record.setRentInfo(JSON.toJSONString(shlist)); |
|
|
|
} |
|
|
|
record.setRentArea(rentArea.toPlainString()); |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, "保存物业合同信息成功", record); |
|
|
|
} |
|
|
|
|