diff --git a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java index cd2cb566..8b73b277 100644 --- a/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java +++ b/dq-financial-guarantee/src/main/java/com/daqing/financial/guarantee/service/impl/DgPaymentConfirmationConsiderServiceImpl.java @@ -202,7 +202,7 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl 0){ - //更新法规部经理数据 + //更新担保函法规部经理数据 //根据业务id查询法规部经理数据 QueryWrapper guaranteeLetterAssignUserQueryWrapperFg = new QueryWrapper<>(); guaranteeLetterAssignUserQueryWrapperFg.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); @@ -210,7 +210,7 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl guaranteeLetterAssignUserQueryWrapperA = new QueryWrapper<>(); guaranteeLetterAssignUserQueryWrapperA.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_A_ID); @@ -218,7 +218,7 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl guaranteeLetterAssignUserQueryWrapperB = new QueryWrapper<>(); guaranteeLetterAssignUserQueryWrapperB.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_B_ID); @@ -226,12 +226,29 @@ public class DgPaymentConfirmationConsiderServiceImpl extends ServiceImpl guaranteeLetterAssignUserQueryWrapper = new QueryWrapper<>(); guaranteeLetterAssignUserQueryWrapper.eq("business_id",businessId).eq("role_id", PromptSuccess.ZC_JL_ID); DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUser = guaranteeLetterAssignUserMapper.selectOne(guaranteeLetterAssignUserQueryWrapper); dgGuaranteeLetterAssignUser.setStatus(StatusCode.SP_REJECT); dgGuaranteeLetterAssignUser.setOperatingStatus(StatusCode.CZ_ON_HAND); dgGuaranteeLetterAssignUser.setAuditOpinion(""); + + //如果财务确认的法规部经理有数据,更新法规部经理数据 + //法规部数据存在,更新法规部经理财务回款数据 + QueryWrapper paymentConfirmationConsiderFG = new QueryWrapper<>(); + paymentConfirmationConsiderFG.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); + DgPaymentConfirmationConsider paymentConfirmationConsiderFg = baseMapper.selectOne(paymentConfirmationConsiderFG); + //数据存在,进行更新 + if (ObjectUtil.isNotNull(paymentConfirmationConsiderFg)){ + paymentConfirmationConsiderFg.setStatus(StatusCode.SP_REJECT); + //清空上次的审批意见及银行回单 + paymentConfirmationConsiderFg.setAuditOpinion(""); + paymentConfirmationConsiderFg.setImgFile(""); + baseMapper.updateById(paymentConfirmationConsiderFg); + } + int updateById = guaranteeLetterAssignUserMapper.updateById(dgGuaranteeLetterAssignUser); //更新成功,返回操作结果 log.info(updateById > 0 ? "驳回更新资产部经理成功" : "驳回更新资产部经理失败");