|
|
@ -3,12 +3,14 @@ package com.daqing.financial.guarantee.service.impl; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.controller.DgApplyAmountInfoController; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgGuaranteeLetterAssignUserMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgGuaranteeLetterAssignUserMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgLoanCommitteeConsiderMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgLoanCommitteeConsiderMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgPaymentConfirmationConsiderMapper; |
|
|
|
import com.daqing.financial.guarantee.mapper.DgPaymentConfirmationConsiderMapper; |
|
|
|
import com.daqing.financial.guarantee.model.request.GuaranteeLetterQueryRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.GuaranteeLetterQueryRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.GuaranteeLetterUpdateStatusRequest; |
|
|
|
import com.daqing.financial.guarantee.model.request.GuaranteeLetterUpdateStatusRequest; |
|
|
|
import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse; |
|
|
|
import com.daqing.financial.guarantee.model.response.GuaranteeLetterListResponse; |
|
|
|
|
|
|
|
import com.daqing.financial.guarantee.model.response.PaymentConfirmationListResponse; |
|
|
|
import com.daqing.financial.guarantee.service.IDgGuaranteeLetterAssignUserService; |
|
|
|
import com.daqing.financial.guarantee.service.IDgGuaranteeLetterAssignUserService; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
|
|
|
import com.daqing.financial.guarantee.util.AuditProcessUtil; |
|
|
|
import com.daqing.financial.guarantee.util.AuditProcessUtil; |
|
|
@ -20,6 +22,7 @@ import com.daqing.framework.model.response.PromptSuccess; |
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
import com.daqing.framework.util.RedisUtil; |
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
import com.daqing.framework.utils.PageUtils; |
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
import com.daqing.framework.utils.excel.EasyExcelUtil; |
|
|
|
|
|
|
|
import com.daqing.framework.utils.excel.ExcelUtil; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
@ -52,6 +55,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
@Autowired |
|
|
|
@Autowired |
|
|
|
private DgLoanCommitteeConsiderMapper dgLoanCommitteeConsiderMapper; |
|
|
|
private DgLoanCommitteeConsiderMapper dgLoanCommitteeConsiderMapper; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public GuaranteeLetterListResponse selectGuaranteeLetter(String businessId) { |
|
|
|
public GuaranteeLetterListResponse selectGuaranteeLetter(String businessId) { |
|
|
|
GuaranteeLetterListResponse response = baseMapper.selectGuaranteeLetter(businessId); |
|
|
|
GuaranteeLetterListResponse response = baseMapper.selectGuaranteeLetter(businessId); |
|
|
@ -72,7 +76,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
String[] id = ids.split(","); |
|
|
|
String[] id = ids.split(","); |
|
|
|
List<String> idList = Arrays.asList(id); |
|
|
|
List<String> idList = Arrays.asList(id); |
|
|
|
List<GuaranteeLetterListResponse> excelDataList = baseMapper.selectBatchData(idList); |
|
|
|
List<GuaranteeLetterListResponse> excelDataList = baseMapper.selectBatchData(idList); |
|
|
|
EasyExcelUtil.download(response,GuaranteeLetterListResponse.class,excelDataList,"GuaranteeLetterList","第一页"); |
|
|
|
EasyExcelUtil.download(response,GuaranteeLetterListResponse.class,excelDataList,"担保函列表","第一页"); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
@ -96,7 +100,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
List<GuaranteeLetterListResponse> records = guaranteeLetterVO.getRecords(); |
|
|
|
List<GuaranteeLetterListResponse> records = guaranteeLetterVO.getRecords(); |
|
|
|
records.forEach(guaranteeLetterListResponse -> { |
|
|
|
records.forEach(guaranteeLetterListResponse -> { |
|
|
|
//角色为法规部经理则设置值
|
|
|
|
//角色为法规部经理则设置值
|
|
|
|
if (roleIdList.contains(PromptSuccess.FG_JL_ID)){ |
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))){ |
|
|
|
guaranteeLetterListResponse.setIsFgJl(1); |
|
|
|
guaranteeLetterListResponse.setIsFgJl(1); |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
@ -115,7 +119,6 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
@Transactional |
|
|
|
@Transactional |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public boolean updateGuaranteeLetterStatus(GuaranteeLetterUpdateStatusRequest guaranteeLetterUpdateStatusRequest) { |
|
|
|
public boolean updateGuaranteeLetterStatus(GuaranteeLetterUpdateStatusRequest guaranteeLetterUpdateStatusRequest) { |
|
|
|
// TODO 所有操作待添加业务流程数据
|
|
|
|
|
|
|
|
//更新条件
|
|
|
|
//更新条件
|
|
|
|
Integer businessId = guaranteeLetterUpdateStatusRequest.getBusinessId(); |
|
|
|
Integer businessId = guaranteeLetterUpdateStatusRequest.getBusinessId(); |
|
|
|
//状态值为2表示通过或同意,为4表示驳回操作
|
|
|
|
//状态值为2表示通过或同意,为4表示驳回操作
|
|
|
@ -138,7 +141,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
if (roleIdList!=null){ |
|
|
|
if (roleIdList!=null){ |
|
|
|
|
|
|
|
|
|
|
|
//角色为法规部经理则生成担保函操作和驳回操作
|
|
|
|
//角色为法规部经理则生成担保函操作和驳回操作
|
|
|
|
if (roleIdList.contains(PromptSuccess.FG_JL_ID)){ |
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.FG_JL_ID))){ |
|
|
|
//更新之前,获取此数据的审批状态,如果审批状态为驳回,则更新ab角用户数据,如果审批状态为审批中,则添加ab角用户数据
|
|
|
|
//更新之前,获取此数据的审批状态,如果审批状态为驳回,则更新ab角用户数据,如果审批状态为审批中,则添加ab角用户数据
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.FG_JL_ID); |
|
|
@ -158,8 +161,12 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
//获取公司id
|
|
|
|
//获取公司id
|
|
|
|
Integer companyId = guaranteeLetterAssignUser.getCompanyId(); |
|
|
|
Integer companyId = guaranteeLetterAssignUser.getCompanyId(); |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见 TODO 添加业务流程
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion); |
|
|
|
//更新成功,添加ab角数据
|
|
|
|
//更新成功,添加ab角数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//添加a角
|
|
|
|
//添加a角
|
|
|
@ -188,8 +195,11 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
guaranteeLetterAssignUser.setStatus(StatusCode.SP_REVIEWED); |
|
|
|
guaranteeLetterAssignUser.setStatus(StatusCode.SP_REVIEWED); |
|
|
|
guaranteeLetterAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED); |
|
|
|
guaranteeLetterAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED); |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见 TODO 添加业务流程
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion); |
|
|
|
//更新成功,更新ab角数据
|
|
|
|
//更新成功,更新ab角数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//更新a角
|
|
|
|
//更新a角
|
|
|
@ -232,7 +242,10 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
//TODO 更新成功,更新贷审会数据
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"法规部经理",auditOpinion); |
|
|
|
|
|
|
|
//更新成功,更新贷审会数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//根据业务id查询贷审会数据
|
|
|
|
//根据业务id查询贷审会数据
|
|
|
|
QueryWrapper<DgLoanCommitteeConsider> loanCommitteeConsiderQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgLoanCommitteeConsider> loanCommitteeConsiderQueryWrapper = new QueryWrapper<>(); |
|
|
@ -249,7 +262,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//角色为资产部经理则确认担保函操作和驳回操作
|
|
|
|
//角色为资产部经理则确认担保函操作和驳回操作
|
|
|
|
if (roleIdList.contains(PromptSuccess.ZC_JL_ID)){ |
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.ZC_JL_ID))){ |
|
|
|
//更新之前,获取此数据的审批状态,如果审批状态为驳回,则更新回款确认数据,如果审批状态为审批中,则添加回款确认数据
|
|
|
|
//更新之前,获取此数据的审批状态,如果审批状态为驳回,则更新回款确认数据,如果审批状态为审批中,则添加回款确认数据
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.ZC_JL_ID); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.ZC_JL_ID); |
|
|
@ -269,9 +282,12 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion); |
|
|
|
//获取公司id
|
|
|
|
//获取公司id
|
|
|
|
Integer companyId = guaranteeLetterAssignUser.getCompanyId(); |
|
|
|
Integer companyId = guaranteeLetterAssignUser.getCompanyId(); |
|
|
|
//更新成功,添加回款确认数据 TODO 添加业务流程
|
|
|
|
//更新成功,添加回款确认数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//添加财务部经理的回款数据
|
|
|
|
//添加财务部经理的回款数据
|
|
|
|
DgPaymentConfirmationConsider paymentConfirmationConsider = new DgPaymentConfirmationConsider(); |
|
|
|
DgPaymentConfirmationConsider paymentConfirmationConsider = new DgPaymentConfirmationConsider(); |
|
|
@ -298,7 +314,10 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
//更新成功,更新回款确认数据 TODO 添加业务流程
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion); |
|
|
|
|
|
|
|
//更新成功,更新回款确认数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//更新财务部经理的回款数据
|
|
|
|
//更新财务部经理的回款数据
|
|
|
|
QueryWrapper<DgPaymentConfirmationConsider> paymentConfirmationConsiderQueryWrapper = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgPaymentConfirmationConsider> paymentConfirmationConsiderQueryWrapper = new QueryWrapper<>(); |
|
|
@ -329,6 +348,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
guaranteeLetterAssignUser.setAuditOpinion(auditOpinion); |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"资产部经理",auditOpinion); |
|
|
|
//更新成功,更新AB角数据
|
|
|
|
//更新成功,更新AB角数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//根据业务id查询A角数据
|
|
|
|
//根据业务id查询A角数据
|
|
|
@ -359,7 +381,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//角色为a角确认担保函操作和驳回操作
|
|
|
|
//角色为a角确认担保函操作和驳回操作
|
|
|
|
if (roleIdList.contains(PromptSuccess.DB_A_ID)){ |
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.DB_A_ID))){ |
|
|
|
//更新之前,获取此用户数据的审批状态,如果审批状态为驳回,则更新资产部经理数据,如果审批状态为审批中,则添加资产部经理数据
|
|
|
|
//更新之前,获取此用户数据的审批状态,如果审批状态为驳回,则更新资产部经理数据,如果审批状态为审批中,则添加资产部经理数据
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_A_ID); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_A_ID); |
|
|
@ -380,6 +402,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
log.info(i > 0 ? "首次a角用户确认担保函更新成功" : "首次a角用户确认担保函更新失败"); |
|
|
|
log.info(i > 0 ? "首次a角用户确认担保函更新成功" : "首次a角用户确认担保函更新失败"); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion); |
|
|
|
//更新成功后,判断b角用户是否确认
|
|
|
|
//更新成功后,判断b角用户是否确认
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
@ -397,6 +422,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//添加成功,返回操作结果
|
|
|
|
//添加成功,返回操作结果
|
|
|
|
log.info(insert > 0 ? "资产部经理添加成功" : "资产部经理添加失败"); |
|
|
|
log.info(insert > 0 ? "资产部经理添加成功" : "资产部经理添加失败"); |
|
|
|
return insert > 0; |
|
|
|
return insert > 0; |
|
|
|
|
|
|
|
//b用户审核没通过,返回结果
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -412,6 +440,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
log.info(i > 0 ? "驳回后a角用户确认担保函更新成功" : "驳回后a角用户确认担保函更新失败"); |
|
|
|
log.info(i > 0 ? "驳回后a角用户确认担保函更新成功" : "驳回后a角用户确认担保函更新失败"); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion); |
|
|
|
//更新成功后,判断b角用户是否确认
|
|
|
|
//更新成功后,判断b角用户是否确认
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
@ -432,6 +463,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//更新成功,返回操作结果
|
|
|
|
//更新成功,返回操作结果
|
|
|
|
log.info(update > 0 ? "资产部经理更新成功" : "资产部经理更新失败"); |
|
|
|
log.info(update > 0 ? "资产部经理更新成功" : "资产部经理更新失败"); |
|
|
|
return update > 0; |
|
|
|
return update > 0; |
|
|
|
|
|
|
|
//b用户审核没通过,返回结果
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -448,6 +482,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
log.info(i > 0 ? "a角用户驳回担保函更新成功" : "a角用户驳回担保函更新失败"); |
|
|
|
log.info(i > 0 ? "a角用户驳回担保函更新成功" : "a角用户驳回担保函更新失败"); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派A角",auditOpinion); |
|
|
|
//更新成功后,更新b角数据及更新法规部经理数据
|
|
|
|
//更新成功后,更新b角数据及更新法规部经理数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//更新b用户的审核状态为驳回
|
|
|
|
//更新b用户的审核状态为驳回
|
|
|
@ -473,7 +510,7 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//角色为b角确认担保函操作和驳回操作
|
|
|
|
//角色为b角确认担保函操作和驳回操作
|
|
|
|
if (roleIdList.contains(PromptSuccess.DB_B_ID)){ |
|
|
|
if (roleIdList.contains(String.valueOf(PromptSuccess.DB_B_ID))){ |
|
|
|
//更新之前,获取此用户数据的审批状态,如果审批状态为驳回,则更新资产部经理数据,如果审批状态为审批中,则添加资产部经理数据
|
|
|
|
//更新之前,获取此用户数据的审批状态,如果审批状态为驳回,则更新资产部经理数据,如果审批状态为审批中,则添加资产部经理数据
|
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> queryWrapperTemp = new QueryWrapper<>(); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_B_ID); |
|
|
|
queryWrapperTemp.eq("business_id",businessId).eq("role_id",PromptSuccess.DB_B_ID); |
|
|
@ -494,6 +531,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
log.info(i > 0 ? "首次b角用户确认担保函更新成功" : "首次b角用户确认担保函更新失败"); |
|
|
|
log.info(i > 0 ? "首次b角用户确认担保函更新成功" : "首次b角用户确认担保函更新失败"); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion); |
|
|
|
//更新成功后,判断a角用户是否确认
|
|
|
|
//更新成功后,判断a角用户是否确认
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
@ -511,6 +551,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//添加成功,返回操作结果
|
|
|
|
//添加成功,返回操作结果
|
|
|
|
log.info(insert > 0 ? "资产部经理添加成功" : "资产部经理添加失败"); |
|
|
|
log.info(insert > 0 ? "资产部经理添加成功" : "资产部经理添加失败"); |
|
|
|
return insert > 0; |
|
|
|
return insert > 0; |
|
|
|
|
|
|
|
//a用户审核没通过,返回结果
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -527,6 +570,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
log.info(i > 0 ? "驳回后b角用户确认担保函更新成功" : "驳回后b角用户确认担保函更新失败"); |
|
|
|
log.info(i > 0 ? "驳回后b角用户确认担保函更新成功" : "驳回后b角用户确认担保函更新失败"); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion); |
|
|
|
//更新成功后,判断a角用户是否确认
|
|
|
|
//更新成功后,判断a角用户是否确认
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
|
QueryWrapper<DgGuaranteeLetterAssignUser> tempB = new QueryWrapper<>(); |
|
|
@ -547,6 +593,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//更新成功,返回操作结果
|
|
|
|
//更新成功,返回操作结果
|
|
|
|
log.info(update > 0 ? "资产部经理更新成功" : "资产部经理更新失败"); |
|
|
|
log.info(update > 0 ? "资产部经理更新成功" : "资产部经理更新失败"); |
|
|
|
return update > 0; |
|
|
|
return update > 0; |
|
|
|
|
|
|
|
//a用户审核没通过,返回结果
|
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -563,6 +612,9 @@ public class DgGuaranteeLetterAssignUserServiceImpl extends ServiceImpl<DgGuaran |
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
//根据当前用户更新审核状态和操作状态及审核意见
|
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
int i = baseMapper.updateById(guaranteeLetterAssignUser); |
|
|
|
log.info(i > 0 ? "b角用户驳回担保函更新成功" : "b角用户驳回担保函更新失败"); |
|
|
|
log.info(i > 0 ? "b角用户驳回担保函更新成功" : "b角用户驳回担保函更新失败"); |
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
|
|
|
|
String account = DgApplyAmountInfoController.getAccount(); |
|
|
|
|
|
|
|
AuditProcessUtil.save(businessId,account,"指派B角",auditOpinion); |
|
|
|
//更新成功后,更新a角数据及更新法规部经理数据
|
|
|
|
//更新成功后,更新a角数据及更新法规部经理数据
|
|
|
|
if (i > 0){ |
|
|
|
if (i > 0){ |
|
|
|
//更新a用户的审核状态为驳回
|
|
|
|
//更新a用户的审核状态为驳回
|
|
|
|