|
|
@ -57,8 +57,8 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public GuaranteeLetterListResponse selectGuaranteeLetter(String businessId) { |
|
|
|
public GuaranteeLetterListResponse selectGuaranteeLetter(String businessId,String roleId) { |
|
|
|
GuaranteeLetterListResponse response = baseMapper.selectGuaranteeLetter(businessId); |
|
|
|
GuaranteeLetterListResponse response = baseMapper.selectGuaranteeLetter(businessId,roleId); |
|
|
|
return response; |
|
|
|
return response; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -487,19 +487,21 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8); |
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8); |
|
|
|
//更新成功后,更新b角数据及更新法规部经理数据
|
|
|
|
//更新成功后,更新b角数据及更新法规部经理数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//更新b用户的审核状态为驳回
|
|
|
|
//更新b用户的审核状态为驳回,操作状态为已处理
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
tempB.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_B_ID); |
|
|
|
tempB.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_B_ID); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserB = baseMapper.selectOne(tempB); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserB = baseMapper.selectOne(tempB); |
|
|
|
dgGuaranteeLetterAssignUserB.setStatus(StatusCode.SP_REJECT); |
|
|
|
dgGuaranteeLetterAssignUserB.setStatus(StatusCode.SP_REJECT); |
|
|
|
|
|
|
|
dgGuaranteeLetterAssignUserB.setOperatingStatus(StatusCode.CZ_PROCESSED); |
|
|
|
baseMapper.updateById(dgGuaranteeLetterAssignUserB); |
|
|
|
baseMapper.updateById(dgGuaranteeLetterAssignUserB); |
|
|
|
|
|
|
|
|
|
|
|
//更新法规部经理的审核状态为驳回,操作状态为待处理
|
|
|
|
//更新法规部经理的审核状态为驳回,操作状态为待处理,清空审批意见
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempFG = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempFG = new QueryWrapper<>(); |
|
|
|
tempFG.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); |
|
|
|
tempFG.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserFG = baseMapper.selectOne(tempFG); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserFG = baseMapper.selectOne(tempFG); |
|
|
|
dgGuaranteeLetterAssignUserFG.setStatus(StatusCode.SP_REJECT); |
|
|
|
dgGuaranteeLetterAssignUserFG.setStatus(StatusCode.SP_REJECT); |
|
|
|
dgGuaranteeLetterAssignUserFG.setOperatingStatus(StatusCode.CZ_ON_HAND); |
|
|
|
dgGuaranteeLetterAssignUserFG.setOperatingStatus(StatusCode.CZ_ON_HAND); |
|
|
|
|
|
|
|
dgGuaranteeLetterAssignUserFG.setAuditOpinion(""); |
|
|
|
int update = baseMapper.updateById(dgGuaranteeLetterAssignUserFG); |
|
|
|
int update = baseMapper.updateById(dgGuaranteeLetterAssignUserFG); |
|
|
|
//添加成功,返回操作结果
|
|
|
|
//添加成功,返回操作结果
|
|
|
|
log.info(update > 0 ? "a角驳回更新成功" : "a角驳回更新失败"); |
|
|
|
log.info(update > 0 ? "a角驳回更新成功" : "a角驳回更新失败"); |
|
|
@ -617,11 +619,12 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8); |
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8); |
|
|
|
//更新成功后,更新a角数据及更新法规部经理数据
|
|
|
|
//更新成功后,更新a角数据及更新法规部经理数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//更新a用户的审核状态为驳回
|
|
|
|
//更新a用户的审核状态为驳回,操作状态为已处理
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempA = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempA = new QueryWrapper<>(); |
|
|
|
tempA.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_A_ID); |
|
|
|
tempA.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_A_ID); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserA = baseMapper.selectOne(tempA); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserA = baseMapper.selectOne(tempA); |
|
|
|
dgGuaranteeLetterAssignUserA.setStatus(StatusCode.SP_REJECT); |
|
|
|
dgGuaranteeLetterAssignUserA.setStatus(StatusCode.SP_REJECT); |
|
|
|
|
|
|
|
dgGuaranteeLetterAssignUserA.setStatus(StatusCode.CZ_PROCESSED); |
|
|
|
baseMapper.updateById(dgGuaranteeLetterAssignUserA); |
|
|
|
baseMapper.updateById(dgGuaranteeLetterAssignUserA); |
|
|
|
|
|
|
|
|
|
|
|
//更新法规部经理的审核状态为驳回,操作状态为待处理
|
|
|
|
//更新法规部经理的审核状态为驳回,操作状态为待处理
|
|
|
@ -629,6 +632,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
tempFG.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); |
|
|
|
tempFG.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserFG = baseMapper.selectOne(tempFG); |
|
|
|
DgGuaranteeLetterAssignUser dgGuaranteeLetterAssignUserFG = baseMapper.selectOne(tempFG); |
|
|
|
dgGuaranteeLetterAssignUserFG.setStatus(StatusCode.SP_REJECT); |
|
|
|
dgGuaranteeLetterAssignUserFG.setStatus(StatusCode.SP_REJECT); |
|
|
|
|
|
|
|
dgGuaranteeLetterAssignUserFG.setAuditOpinion(""); |
|
|
|
dgGuaranteeLetterAssignUserFG.setOperatingStatus(StatusCode.CZ_ON_HAND); |
|
|
|
dgGuaranteeLetterAssignUserFG.setOperatingStatus(StatusCode.CZ_ON_HAND); |
|
|
|
int update = baseMapper.updateById(dgGuaranteeLetterAssignUserFG); |
|
|
|
int update = baseMapper.updateById(dgGuaranteeLetterAssignUserFG); |
|
|
|
//添加成功,返回操作结果
|
|
|
|
//添加成功,返回操作结果
|
|
|
|