|
|
|
@ -19,6 +19,8 @@ import com.daqing.framework.domain.guarantee.DgGuaranteeAssignUser; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgGuaranteeLetterAssignUser; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgLoanCommitteeConsider; |
|
|
|
|
import com.daqing.framework.domain.guarantee.DgPaymentConfirmationConsider; |
|
|
|
|
import com.daqing.framework.exception.ExceptionCast; |
|
|
|
|
import com.daqing.framework.exception.ExceptionCatch; |
|
|
|
|
import com.daqing.framework.model.StatusCode; |
|
|
|
|
import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
@ -92,7 +94,6 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
String customerNumberOrName = guaranteeLetterQueryRequest.getCustomerNumberOrName(); |
|
|
|
|
//获取当前登录用户id
|
|
|
|
|
Integer userId = Integer.parseInt(this.getUserId()); |
|
|
|
|
|
|
|
|
|
//获取当前用户拥有的角色ids
|
|
|
|
|
String roleIds = RedisUtil.get("dq:userRole:" + userId); |
|
|
|
|
IPage<GuaranteeLetterListResponse> guaranteeLetterVO = null; |
|
|
|
@ -169,7 +170,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功,添加ab角数据
|
|
|
|
|
if (i > 0){ |
|
|
|
|
//获取之前指定的a角用户
|
|
|
|
@ -214,7 +215,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功,更新ab角数据及资产部经理数据
|
|
|
|
|
if (i > 0){ |
|
|
|
|
//更新a角
|
|
|
|
@ -273,7 +274,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功,更新贷审会数据
|
|
|
|
|
if (i > 0){ |
|
|
|
|
//根据业务id查询贷审会数据
|
|
|
|
@ -313,7 +314,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion,8,"","",""); |
|
|
|
|
//获取公司id
|
|
|
|
|
Integer companyId = guaranteeLetterAssignUser.getCompanyId(); |
|
|
|
|
//更新成功,添加回款确认数据及更新整个业务的审核状态
|
|
|
|
@ -369,7 +370,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功,更新回款确认数据及更新整个业务的审核状态
|
|
|
|
|
if (i > 0){ |
|
|
|
|
//更新法规部经理数据
|
|
|
|
@ -427,7 +428,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功,更新AB角数据
|
|
|
|
|
if (i > 0){ |
|
|
|
|
//更新法规部经理数据
|
|
|
|
@ -489,7 +490,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
log.info(i > 0 ? "首次a角用户确认担保函更新成功" : "首次a角用户确认担保函更新失败"); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功后,判断b角用户是否确认
|
|
|
|
|
if (i > 0){ |
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
@ -506,8 +507,8 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
int insert = baseMapper.insert(ZCJLGuaranteeLetterAssign); |
|
|
|
|
//添加成功,返回操作结果
|
|
|
|
|
log.info(insert > 0 ? "资产部经理添加成功" : "资产部经理添加失败"); |
|
|
|
|
return insert > 0; |
|
|
|
|
//b用户审核没通过,返回结果
|
|
|
|
|
return insert > 0; |
|
|
|
|
}else { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -527,7 +528,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
log.info(i > 0 ? "驳回后a角用户确认担保函更新成功" : "驳回后a角用户确认担保函更新失败"); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功后,判断b角用户是否确认
|
|
|
|
|
if (i > 0){ |
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
@ -547,8 +548,8 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
int update = baseMapper.updateById(letterAssignUserZCJL); |
|
|
|
|
//更新成功,返回操作结果
|
|
|
|
|
log.info(update > 0 ? "资产部经理更新成功" : "资产部经理更新失败"); |
|
|
|
|
return update > 0; |
|
|
|
|
//b用户审核没通过,返回结果
|
|
|
|
|
return update > 0; |
|
|
|
|
}else { |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
@ -568,7 +569,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
log.info(i > 0 ? "a角用户驳回担保函更新成功" : "a角用户驳回担保函更新失败"); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功后,更新b角数据及更新法规部经理数据
|
|
|
|
|
if (i > 0){ |
|
|
|
|
//更新b用户的审核状态为驳回,操作状态为已处理
|
|
|
|
@ -617,7 +618,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
log.info(i > 0 ? "首次b角用户确认担保函更新成功" : "首次b角用户确认担保函更新失败"); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功后,判断a角用户是否确认
|
|
|
|
|
if (i > 0){ |
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
@ -656,7 +657,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
log.info(i > 0 ? "驳回后b角用户确认担保函更新成功" : "驳回后b角用户确认担保函更新失败"); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功后,判断a角用户是否确认
|
|
|
|
|
if (i > 0){ |
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
@ -697,7 +698,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
log.info(i > 0 ? "b角用户驳回担保函更新成功" : "b角用户驳回担保函更新失败"); |
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8); |
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion,8,"","",""); |
|
|
|
|
//更新成功后,更新a角数据及更新法规部经理数据
|
|
|
|
|
if (i > 0){ |
|
|
|
|
//更新a用户的审核状态为驳回,操作状态为已处理
|
|
|
|
|