|
|
|
@@ -144,6 +144,12 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
@Override |
|
|
|
@Transactional(rollbackFor = {Exception.class}) |
|
|
|
public ResultData saveOrUpdate(WxPropertyContract record, Long userId,String userName) { |
|
|
|
// 保存调整金额(预账单调整) |
|
|
|
if(!CollectionUtils.isEmpty(record.getPreviewBillRentList())){ |
|
|
|
for (WxBillProperty wxBillProperty:record.getPreviewBillRentList()) { |
|
|
|
wxBillPropertyMapper.update(wxBillProperty); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (null == record.getShopId()) { |
|
|
|
return new ResultData(ErrorCode.SYS_PARAMETER_NOT_NULL.getCode(), "shopId不能为空"); |
|
|
|
@@ -300,13 +306,6 @@ public class WxPropertyContractServiceImpl implements WxPropertyContractService |
|
|
|
wxPropertyContractMapper.updateStatus(updateRentContract); |
|
|
|
logger.info("id:{},启动审批流成功",record.getId().toString()); |
|
|
|
} |
|
|
|
|
|
|
|
// 保存调整金额(预账单调整) |
|
|
|
if(!CollectionUtils.isEmpty(record.getPreviewBillRentList())){ |
|
|
|
for (WxBillProperty wxBillProperty:record.getPreviewBillRentList()) { |
|
|
|
wxBillPropertyMapper.update(wxBillProperty); |
|
|
|
} |
|
|
|
} |
|
|
|
return new ResultData(Result.SUCCESS, message, record); |
|
|
|
} |
|
|
|
|
|
|
|
|