|
|
|
@@ -561,16 +561,17 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
&& record.getMerchantId() != null) { |
|
|
|
updateRentContractStatus(record.getId()); |
|
|
|
}else{ |
|
|
|
//补录 |
|
|
|
record.getFlowParams().put("businessId", record.getId().toString()); |
|
|
|
if (record.getMerchantId() != null) { |
|
|
|
record.getFlowParams().put("supplement", true); //设置补录 |
|
|
|
} |
|
|
|
wxFlowService.start(record.getFlowParams(), userId, userName, record.getTenantId()); |
|
|
|
|
|
|
|
//合同状态改成待签约 |
|
|
|
//合同状态改成补录状态 |
|
|
|
WxRentContract updateRentContract = new WxRentContract(); |
|
|
|
updateRentContract.setId(record.getId()); |
|
|
|
updateRentContract.setStatus(EnumRentContractStatus.WAIT_SIGN.getCode()); |
|
|
|
updateRentContract.setStatus(EnumRentContractStatus.SUPPLE.getCode()); |
|
|
|
wxRentContractMapper.updateStatus(updateRentContract); |
|
|
|
logger.info("id:{},启动审批流成功 ,是否补录:{}", record.getId().toString(), record.getMerchantId() != null); |
|
|
|
} |
|
|
|
|