|
|
|
@@ -333,17 +333,12 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
Date date = new Date(); |
|
|
|
|
|
|
|
if (record.getCreateType().intValue() == EnumPropertyCreateType.BY_SHOP.getCode().intValue()) { |
|
|
|
List<Long> shopIds = record.shopIdsByShop(); |
|
|
|
WxShop shopq = new WxShop(); |
|
|
|
shopq.updateTenantInfo(record); |
|
|
|
shopq.setIds(shopIds); |
|
|
|
List<WxShop> shlist = wxShopService.selectList(shopq); |
|
|
|
Map<Long,BigDecimal> areaMap = record.getRentShopArea(); |
|
|
|
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)); |
|
|
|
for (Iterator<Long> it = areaMap.keySet().iterator();it.hasNext();) { |
|
|
|
Long sid = it.next(); |
|
|
|
BigDecimal sa = areaMap.get(sid); |
|
|
|
rentArea = rentArea.add(sa); |
|
|
|
} |
|
|
|
record.setRentArea(rentArea.toPlainString()); |
|
|
|
} |
|
|
|
|