From 8eac5c4867a51e7eb9df8895fe6fd34d27e668f9 Mon Sep 17 00:00:00 2001 From: xiaohanzi Date: Tue, 1 Sep 2020 11:37:02 +0800 Subject: [PATCH] fix contract --- .../com/iformall/service/impl/WxFlowServiceImpl.java | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java index 831f292b4..43667587d 100644 --- a/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java +++ b/mallinkService/src/main/java/com/iformall/service/impl/WxFlowServiceImpl.java @@ -219,6 +219,10 @@ public class WxFlowServiceImpl implements WxFlowService { if (isrentproperty) { wxPropertyContractService.updatePropertyContractStatus(propetyId); } + //如果是审批撤回,或者驳回,改回草稿状态 + }else if (EnumRentContractAppStatus.SETBACK.getCode().intValue() == applyStatus.intValue() + || EnumRentContractAppStatus.REJECT.getCode().intValue() == applyStatus.intValue()) { + rent.setStatus(EnumRentContractStatus.DRAFT.getCode()); } wxRentContractService.updateApplyStatus(rent); if (isrentproperty) { @@ -243,7 +247,11 @@ public class WxFlowServiceImpl implements WxFlowService { // 审批完成 }else if (EnumRentContractAppStatus.FINISH.getCode().intValue() == applyStatus.intValue()) { wxPropertyContractService.updatePropertyContractStatus(Long.parseLong(businessId)); - } + //如果是审批撤回,或者驳回,改回草稿状态 + }else if (EnumRentContractAppStatus.SETBACK.getCode().intValue() == applyStatus.intValue() + || EnumRentContractAppStatus.REJECT.getCode().intValue() == applyStatus.intValue()) { + wxPropertyContract.setStatus(EnumRentContractStatus.DRAFT.getCode()); + } wxPropertyContractMapper.updateApplyStatus(wxPropertyContract); }