diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java index e3c9db5e..85ee23ca 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgApplyAmountInfoServiceImpl.java @@ -332,6 +332,22 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl() .eq("business_id", businessApplication.getBusinessId()).eq("type", 1)); + + //草稿状态下,新增业务状态到业务状态表 + if(dgApplyAmountList.getStatus().equals(StatusCode.SP_DRAFT)){ + DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); + processStatus.setBusinessId(businessApplication.getBusinessId());//业务id + processStatus.setBusinessStatus(1);//进行中 + dgBusinessProcessStatusMapper.insert(processStatus); + } + + //撤销状态下,修改业务状态 + if(dgApplyAmountList.getStatus().equals(StatusCode.SP_RESCINDED)){ + DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); + processStatus.setBusinessStatus(1);//进行中 + dgBusinessProcessStatusMapper.update(processStatus,new QueryWrapper() + .eq("business_id",businessApplication.getBusinessId())); + } //将业务员状态改为审核中,操作状态改为已处理 dgApplyAmountList.setId(dgApplyAmountList.getId()); dgApplyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//审核中 @@ -340,10 +356,12 @@ public class DgApplyAmountInfoServiceImpl extends ServiceImpl() .eq("business_id", businessApplication.getBusinessId()).eq("type", 2)); - applyAmountList.setId(applyAmountList.getId()); - applyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//审核中 - applyAmountList.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理 - dgApplyAmountListMapper.updateById(applyAmountList); + if(applyAmountList != null){ + applyAmountList.setId(applyAmountList.getId()); + applyAmountList.setStatus(StatusCode.SP_IN_REVIEW);//审核中 + applyAmountList.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理 + dgApplyAmountListMapper.updateById(applyAmountList); + } //结束--------------------------------------------- //业务申请重新绑定关联人 diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java index 78210295..92835026 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgGuaranteeAssignUserServiceImpl.java @@ -554,12 +554,14 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl