|
|
|
@@ -393,11 +393,20 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
|
|
|
|
Map<String, Object> resultData = new HashMap(); |
|
|
|
//商铺信息 |
|
|
|
Map<String, Object> shopparams = new HashMap<>(); |
|
|
|
shopparams.put("tenantId", tenantId); |
|
|
|
shopparams.put("status", EnumShopStatus.NOT_RENT.getCode()); |
|
|
|
Map<String, Object> shopLeftInfo = wxShopMapper.queryShopLeftInfo(shopparams); |
|
|
|
resultData.put("shopLeftInfo", shopLeftInfo); |
|
|
|
WxShop wxShop = new WxShop(); |
|
|
|
wxShop.setTenantId(tenantId); |
|
|
|
wxShop.setStatus(EnumShopStatus.RENT.getCode()); |
|
|
|
List<WxShop> rentedList = wxShopMapper.findList(wxShop); |
|
|
|
wxShop.setStatus(EnumShopStatus.NOT_RENT.getCode()); |
|
|
|
List<WxShop> unrentedList = wxShopMapper.findList(wxShop); |
|
|
|
|
|
|
|
HashMap<String, Object> shopMap = new HashMap<>(3); |
|
|
|
int rentedCount = rentedList.size(); |
|
|
|
int unrentedCount = unrentedList.size(); |
|
|
|
shopMap.put("rentedCount",rentedCount); |
|
|
|
shopMap.put("unrentedCount",unrentedCount); |
|
|
|
shopMap.put("allCount",rentedCount+unrentedCount); |
|
|
|
resultData.put("shopCountInfo", shopMap); |
|
|
|
|
|
|
|
//需要更新的状态 |
|
|
|
resultData.putAll(updateStatus(tenantId)); |
|
|
|
@@ -480,6 +489,10 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
WxPropertyContract wxRentContract = new WxPropertyContract(); |
|
|
|
wxRentContract.setTenantId(tenantId); |
|
|
|
|
|
|
|
|
|
|
|
int allCount = wxPropertyContractMapper.selectCount(wxRentContract); |
|
|
|
resultData.put("allCount", allCount); |
|
|
|
|
|
|
|
//作废合同 |
|
|
|
wxRentContract.setStatus(EnumRentContractStatus.INVALID.getCode()); |
|
|
|
wxPropertyContractMapper.updateRentInvalidStatus(wxRentContract); |
|
|
|
|