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); }