From 44a2a6a40ef6cc7961fef07618264e8945b13d63 Mon Sep 17 00:00:00 2001 From: shijie <648688341@qq.com> Date: Wed, 16 Dec 2020 11:01:09 +0800 Subject: [PATCH] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/DgApplyAmountInfoServiceImpl.java | 26 ++++++++++++++++--- .../DgGuaranteeAssignUserServiceImpl.java | 12 +++++---- .../src/main/resources/jwt.properties | 3 ++- 3 files changed, 31 insertions(+), 10 deletions(-) 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