|
|
|
@@ -803,8 +803,24 @@ public class WxRentContractServiceImpl implements WxRentContractService { |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public ResultData updateFile(WxRentContract record, Long userId) { |
|
|
|
return getResultDataForUpdate(record, userId); |
|
|
|
@Transactional(rollbackFor = {Exception.class}) |
|
|
|
public ResultData updateFile(WxRentContract record, Long userId,String userName) { |
|
|
|
ResultData resultData = getResultDataForUpdate(record, userId); |
|
|
|
try { |
|
|
|
record.getFlowParams().put("businessId",record.getId().toString()); |
|
|
|
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()); |
|
|
|
wxRentContractMapper.updateStatus(updateRentContract); |
|
|
|
} catch (Exception e) { |
|
|
|
logger.error("启动审批流失败,e:" + e.getMessage()); |
|
|
|
throw new MallinkException(ErrorCode.FLOW_FAIL.getCode(), "FLOW FAILD " + e.getMessage()); |
|
|
|
} |
|
|
|
return resultData; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
|