|
|
@ -158,10 +158,15 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
dgEnclosureInfo.setMarriageCopyList((List<String>) arr1List2.get(13)); |
|
|
|
dgEnclosureInfo.setMarriageCopyList((List<String>) arr1List2.get(13)); |
|
|
|
|
|
|
|
|
|
|
|
System.out.println("附件详细=============="+dgEnclosureInfo); |
|
|
|
System.out.println("附件详细=============="+dgEnclosureInfo); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//查询担保部经理审核的金额和期限
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser assignUser = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
|
|
|
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 3)); |
|
|
|
GuaranteeDetailResponse guaranteeDetailResponse= new GuaranteeDetailResponse(); |
|
|
|
GuaranteeDetailResponse guaranteeDetailResponse= new GuaranteeDetailResponse(); |
|
|
|
guaranteeDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo); |
|
|
|
guaranteeDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo); |
|
|
|
guaranteeDetailResponse.setDgEnclosureInfo(dgEnclosureInfo); |
|
|
|
guaranteeDetailResponse.setDgEnclosureInfo(dgEnclosureInfo); |
|
|
|
guaranteeDetailResponse.setLinkedHashMap(linkedList); |
|
|
|
guaranteeDetailResponse.setLinkedHashMap(linkedList); |
|
|
|
|
|
|
|
guaranteeDetailResponse.setAssignUser(assignUser); |
|
|
|
return guaranteeDetailResponse; |
|
|
|
return guaranteeDetailResponse; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -171,22 +176,29 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
//根据主键id查询业务id
|
|
|
|
//根据主键id查询业务id
|
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = this.getBaseMapper().selectById(investigateGuaranteeRequest.getId()); |
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = this.getBaseMapper().selectById(investigateGuaranteeRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//如果是属于被驳回的数据,并且调查通过(同意)
|
|
|
|
|
|
|
|
if(guaranteeAssignUser.getStatus().equals(StatusCode.SP_REJECT)){ |
|
|
|
|
|
|
|
|
|
|
|
//AB角调查,修改审核意见以及状态
|
|
|
|
//AB角调查,修改审核意见以及状态
|
|
|
|
DgGuaranteeAssignUser dgGuaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
DgGuaranteeAssignUser dgGuaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
dgGuaranteeAssignUser.setId(investigateGuaranteeRequest.getId());//主键id
|
|
|
|
dgGuaranteeAssignUser.setId(investigateGuaranteeRequest.getId());//主键id
|
|
|
|
dgGuaranteeAssignUser.setStatus(investigateGuaranteeRequest.getStatus());//状态
|
|
|
|
dgGuaranteeAssignUser.setStatus(StatusCode.SP_REJECT);//状态为驳回(只有A,B角同时)
|
|
|
|
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
|
|
|
|
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
|
|
|
|
dgGuaranteeAssignUser.setRemark(investigateGuaranteeRequest.getApplyContent());//审核意见
|
|
|
|
dgGuaranteeAssignUser.setRemark(investigateGuaranteeRequest.getApplyContent());//审核意见
|
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
|
|
|
|
|
|
|
|
int i = this.baseMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
int i = this.baseMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
.eq("type",1).eq("status",StatusCode.SP_IN_REVIEW).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
.eq("type",1).eq("status",StatusCode.SP_REJECT).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
int n = this.baseMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
int n = this.baseMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
.eq("type",2).eq("status",StatusCode.SP_IN_REVIEW).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
.eq("type",2).eq("status",StatusCode.SP_REJECT).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
int sum = i+n; |
|
|
|
int sum = i+n; |
|
|
|
|
|
|
|
//如果A或B调查通过,审批状态仍然是驳回,操作状态改为已处理
|
|
|
|
//如果是属于驳回的数据,并且调查通过
|
|
|
|
if(sum == 1){ |
|
|
|
if(guaranteeAssignUser.getStatus().equals(StatusCode.SP_REJECT)){ |
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
assignUser.setId(investigateGuaranteeRequest.getId());//主键id
|
|
|
|
|
|
|
|
assignUser.setStatus(StatusCode.SP_REJECT);//驳回
|
|
|
|
|
|
|
|
this.baseMapper.updateById(assignUser); |
|
|
|
|
|
|
|
} |
|
|
|
//判断AB角是否都调查通过,如果通过,则将担保部经理的状态改为待处理,同时所有的审批状态都变成审核中
|
|
|
|
//判断AB角是否都调查通过,如果通过,则将担保部经理的状态改为待处理,同时所有的审批状态都变成审核中
|
|
|
|
if(sum == 2){ |
|
|
|
if(sum == 2){ |
|
|
|
DgGuaranteeAssignUser user = new DgGuaranteeAssignUser(); |
|
|
|
DgGuaranteeAssignUser user = new DgGuaranteeAssignUser(); |
|
|
@ -194,6 +206,14 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
this.baseMapper.update(user,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
this.baseMapper.update(user,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
.eq("business_id",guaranteeAssignUser.getBusinessId())); |
|
|
|
.eq("business_id",guaranteeAssignUser.getBusinessId())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
//AB角调查,修改审核意见以及状态
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser dgGuaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
dgGuaranteeAssignUser.setId(investigateGuaranteeRequest.getId());//主键id
|
|
|
|
|
|
|
|
dgGuaranteeAssignUser.setStatus(investigateGuaranteeRequest.getStatus());//状态
|
|
|
|
|
|
|
|
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
|
|
|
|
|
|
|
|
dgGuaranteeAssignUser.setRemark(investigateGuaranteeRequest.getApplyContent());//审核意见
|
|
|
|
|
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if(investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT)){//驳回情况处理
|
|
|
|
if(investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT)){//驳回情况处理
|
|
|
@ -217,6 +237,28 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
.eq("business_id",guaranteeAssignUser.getBusinessId())); |
|
|
|
.eq("business_id",guaranteeAssignUser.getBusinessId())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断A角和B角是否都调查通过,如果都审核通过,修改担保部经理操作状态为待处理
|
|
|
|
|
|
|
|
int a = this.baseMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
|
|
|
|
.eq("type",1).eq("status",StatusCode.SP_IN_REVIEW).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
|
|
|
|
int b = this.baseMapper.selectCount(new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
|
|
|
|
.eq("type",2).eq("status",StatusCode.SP_IN_REVIEW).eq("operating_status",StatusCode.CZ_PROCESSED)); |
|
|
|
|
|
|
|
int sum2 = a+b; |
|
|
|
|
|
|
|
if(sum2==2){ |
|
|
|
|
|
|
|
/* if(){//合规调查驳回情况处理
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if(){//贷审会业务流程驳回情况处理
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else{//正常情况处理*/
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
assignUser.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理
|
|
|
|
|
|
|
|
assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审批状态设置为审核中
|
|
|
|
|
|
|
|
assignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
|
|
|
|
this.baseMapper.update(assignUser,new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
|
|
|
|
.eq("type",3)); |
|
|
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
//上传附件信息
|
|
|
|
//上传附件信息
|
|
|
|
DgEnclosureInfo dgEnclosureInfo = new DgEnclosureInfo(); |
|
|
|
DgEnclosureInfo dgEnclosureInfo = new DgEnclosureInfo(); |
|
|
|
dgEnclosureInfo.setBusinessId(guaranteeAssignUser.getBusinessId());//业务id
|
|
|
|
dgEnclosureInfo.setBusinessId(guaranteeAssignUser.getBusinessId());//业务id
|
|
|
@ -236,17 +278,6 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
//附件新增
|
|
|
|
//附件新增
|
|
|
|
dgEnclosureInfoMapper.insert(dgEnclosureInfo); |
|
|
|
dgEnclosureInfoMapper.insert(dgEnclosureInfo); |
|
|
|
|
|
|
|
|
|
|
|
//判断A角和B角是否都调查通过,如果都审核通过,修改担保部经理操作状态为待处理
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(sum==2){ |
|
|
|
|
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
assignUser.setRoleId(PromptSuccess.DB_JL_ID);//担保部经理
|
|
|
|
|
|
|
|
assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审批状态设置为审核中
|
|
|
|
|
|
|
|
assignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
|
|
|
|
this.baseMapper.update(assignUser,new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeAssignUser.getBusinessId()) |
|
|
|
|
|
|
|
.eq("type",3)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
//同时往审核流程进程表新增一条记录
|
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
AuditProcessUtil.save(guaranteeAssignUser.getBusinessId(),account,"担保部A/B角",investigateGuaranteeRequest.getApplyContent(),2); |
|
|
|
AuditProcessUtil.save(guaranteeAssignUser.getBusinessId(),account,"担保部A/B角",investigateGuaranteeRequest.getApplyContent(),2); |
|
|
@ -261,18 +292,6 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
//根据主键id查询担保部记录
|
|
|
|
//根据主键id查询担保部记录
|
|
|
|
DgGuaranteeAssignUser guaranteeUser = this.baseMapper.selectById(approvalGuaranteeRequest.getId()); |
|
|
|
DgGuaranteeAssignUser guaranteeUser = this.baseMapper.selectById(approvalGuaranteeRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
|
//如果是处理驳回数据,如果审核通过,则将担保部调查业务下所有审批状态设置为审核中,担保领导这条记录操作状态设置为待处理
|
|
|
|
|
|
|
|
if(guaranteeUser.getStatus().equals(StatusCode.SP_REJECT) && approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_IN_REVIEW) && guaranteeUser.getType()==3){ |
|
|
|
|
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
|
|
|
|
this.baseMapper.update(assignUser,new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeUser.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser user = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
user.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态为待处理
|
|
|
|
|
|
|
|
this.baseMapper.update(assignUser,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",4)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser dgGuaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
DgGuaranteeAssignUser dgGuaranteeAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
dgGuaranteeAssignUser.setId(approvalGuaranteeRequest.getId()); |
|
|
|
dgGuaranteeAssignUser.setId(approvalGuaranteeRequest.getId()); |
|
|
|
dgGuaranteeAssignUser.setEmpId(Integer.parseInt(dgApplyAmountInfoController.getUserId())); |
|
|
|
dgGuaranteeAssignUser.setEmpId(Integer.parseInt(dgApplyAmountInfoController.getUserId())); |
|
|
@ -286,16 +305,11 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
//根据主键id修改担保部记录
|
|
|
|
//根据主键id修改担保部记录
|
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
|
|
|
|
|
|
|
|
if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REFUSE)){//如果为拒绝,业务状态则为已否决
|
|
|
|
DgGuaranteeAssignUser dgAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); |
|
|
|
dgAssignUser.setStatus(StatusCode.SP_REJECT);//驳回
|
|
|
|
processStatus.setBusinessId(guaranteeUser.getBusinessId()); |
|
|
|
dgAssignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理
|
|
|
|
processStatus.setBusinessStatus(StatusCode.YW_REJECTED);//业务状态设置为已否决
|
|
|
|
|
|
|
|
dgBusinessProcessStatusMapper.update(processStatus,new QueryWrapper<DgBusinessProcessStatus>() |
|
|
|
|
|
|
|
.eq("business_id",processStatus.getBusinessId())); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//驳回情况
|
|
|
|
if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT)){//驳回情况
|
|
|
|
if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT)){ |
|
|
|
|
|
|
|
//修改担保部调查下该业务的所有审批状态为驳回
|
|
|
|
//修改担保部调查下该业务的所有审批状态为驳回
|
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
assignUser.setStatus(StatusCode.SP_REJECT);//驳回
|
|
|
|
assignUser.setStatus(StatusCode.SP_REJECT);//驳回
|
|
|
@ -303,25 +317,36 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId())); |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId())); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser dgAssignUser = new DgGuaranteeAssignUser(); |
|
|
|
//如果是处理驳回数据,如果审核通过,则将担保部调查业务下所有审批状态设置为审核中,担保领导这条记录操作状态设置为待处理
|
|
|
|
dgAssignUser.setStatus(StatusCode.SP_REJECT);//驳回
|
|
|
|
if(guaranteeUser.getStatus().equals(StatusCode.SP_REJECT) && approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_IN_REVIEW) && guaranteeUser.getType()==3){ |
|
|
|
dgAssignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//待处理
|
|
|
|
DgGuaranteeAssignUser assignUser = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
assignUser.setStatus(StatusCode.SP_IN_REVIEW);//审核中
|
|
|
|
|
|
|
|
this.baseMapper.update(assignUser,new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeUser.getBusinessId())); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser user = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
user.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态为待处理
|
|
|
|
|
|
|
|
this.baseMapper.update(user,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",4)); |
|
|
|
|
|
|
|
}else if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REFUSE)){//如果为拒绝,业务状态则为已否决
|
|
|
|
|
|
|
|
DgBusinessProcessStatus processStatus = new DgBusinessProcessStatus(); |
|
|
|
|
|
|
|
processStatus.setBusinessId(guaranteeUser.getBusinessId()); |
|
|
|
|
|
|
|
processStatus.setBusinessStatus(StatusCode.YW_REJECTED);//业务状态设置为已否决
|
|
|
|
|
|
|
|
dgBusinessProcessStatusMapper.update(processStatus,new QueryWrapper<DgBusinessProcessStatus>() |
|
|
|
|
|
|
|
.eq("business_id",processStatus.getBusinessId())); |
|
|
|
|
|
|
|
}else if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT) && guaranteeUser.getType()==3){ |
|
|
|
//担保部经理驳回情况
|
|
|
|
//担保部经理驳回情况
|
|
|
|
if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT) && guaranteeUser.getType()==3){ |
|
|
|
|
|
|
|
//A,B角调查部分审批状态统一设置驳回,操作状态设置为待处理
|
|
|
|
//A,B角调查部分审批状态统一设置驳回,操作状态设置为待处理
|
|
|
|
this.baseMapper.update(dgAssignUser,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
this.baseMapper.update(dgAssignUser,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",1)); |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",1)); |
|
|
|
this.baseMapper.update(dgAssignUser,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
this.baseMapper.update(dgAssignUser,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",2)); |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",2)); |
|
|
|
} |
|
|
|
}else if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT) && guaranteeUser.getType()==4){ |
|
|
|
//担保部领导驳回情况
|
|
|
|
//担保部领导驳回情况
|
|
|
|
if(approvalGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT) && guaranteeUser.getType()==4){ |
|
|
|
|
|
|
|
//担保部经理审批状态设置为驳回,操作状态设置为待处理
|
|
|
|
//担保部经理审批状态设置为驳回,操作状态设置为待处理
|
|
|
|
this.baseMapper.update(dgAssignUser,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
this.baseMapper.update(dgAssignUser,new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",3)); |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()).eq("type",3)); |
|
|
|
} |
|
|
|
}else if(approvalGuaranteeRequest.getStatus()==StatusCode.SP_IN_REVIEW && dgGuaranteeAssignUser.getOperatingStatus()==StatusCode.CZ_PROCESSED && guaranteeUser.getType()==3){//担保部经理审核通过
|
|
|
|
//如果担保部经理审核通过,则往担保部分管领导处加一条记录,由分管领导审核
|
|
|
|
//如果担保部经理审核通过,则往担保部分管领导处加一条记录,由分管领导审核
|
|
|
|
if(approvalGuaranteeRequest.getStatus()==StatusCode.SP_IN_REVIEW && dgGuaranteeAssignUser.getOperatingStatus()==StatusCode.CZ_PROCESSED && guaranteeUser.getType()==3){//担保部经理审核通过
|
|
|
|
|
|
|
|
//根据主键id查询业务id
|
|
|
|
//根据主键id查询业务id
|
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = this.getBaseMapper().selectById(approvalGuaranteeRequest.getId()); |
|
|
|
DgGuaranteeAssignUser guaranteeAssignUser = this.getBaseMapper().selectById(approvalGuaranteeRequest.getId()); |
|
|
|
|
|
|
|
|
|
|
@ -338,11 +363,12 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
String account = dgApplyAmountInfoController.getAccount(); |
|
|
|
AuditProcessUtil.save(guaranteeAssignUser.getBusinessId(),account,"担保部经理",approvalGuaranteeRequest.getApplyContent(),2); |
|
|
|
AuditProcessUtil.save(guaranteeAssignUser.getBusinessId(),account,"担保部经理",approvalGuaranteeRequest.getApplyContent(),2); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
}else if(approvalGuaranteeRequest.getStatus()==StatusCode.SP_REVIEWED && dgGuaranteeAssignUser.getOperatingStatus()==StatusCode.CZ_PROCESSED && guaranteeUser.getType()==4) {//担保部领导审核通过
|
|
|
|
|
|
|
|
|
|
|
|
//如果担保部分管领导审核通过,同时判断资产部分管领导审核以及信息部分管领导审核是否通过,如果通过就往合规调查中插入一条数据
|
|
|
|
//如果担保部分管领导审核通过,同时判断资产部分管领导审核以及信息部分管领导审核是否通过,如果通过就往合规调查中插入一条数据
|
|
|
|
//待完善
|
|
|
|
//如果信息部领导审核通过,则该子业务流程下的所有审批状态都为已审核状态
|
|
|
|
if(approvalGuaranteeRequest.getStatus()==StatusCode.SP_REVIEWED && dgGuaranteeAssignUser.getOperatingStatus()==StatusCode.CZ_PROCESSED && guaranteeUser.getType()==4) {//担保部领导审核通过
|
|
|
|
DgGuaranteeAssignUser user = new DgGuaranteeAssignUser(); |
|
|
|
|
|
|
|
user.setStatus(StatusCode.SP_REVIEWED);//已审核
|
|
|
|
|
|
|
|
this.baseMapper.update(user,new QueryWrapper<DgGuaranteeAssignUser>().eq("business_id",guaranteeUser.getBusinessId())); |
|
|
|
//查看信息部分管领导是否审核通过
|
|
|
|
//查看信息部分管领导是否审核通过
|
|
|
|
int a=dgMessageInvestigationMapper.selectCount(new QueryWrapper<DgMessageInvestigation>() |
|
|
|
int a=dgMessageInvestigationMapper.selectCount(new QueryWrapper<DgMessageInvestigation>() |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()) |
|
|
|
.eq("business_id",guaranteeUser.getBusinessId()) |
|
|
@ -357,7 +383,7 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
//新增记录到合规调查
|
|
|
|
//新增记录到合规调查
|
|
|
|
DgComplianceInvestigation compliance =new DgComplianceInvestigation(); |
|
|
|
DgComplianceInvestigation compliance =new DgComplianceInvestigation(); |
|
|
|
compliance.setCompanyId(guaranteeUser.getCompanyId());//企业id
|
|
|
|
compliance.setCompanyId(guaranteeUser.getCompanyId());//企业id
|
|
|
|
compliance.setRoleId(guaranteeUser.getRoleId());//角色id
|
|
|
|
compliance.setRoleId(PromptSuccess.FG_JL_ID);//角色id
|
|
|
|
compliance.setBusinessId(guaranteeUser.getBusinessId());//业务id
|
|
|
|
compliance.setBusinessId(guaranteeUser.getBusinessId());//业务id
|
|
|
|
compliance.setOperationStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
compliance.setOperationStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
compliance.setAuditStatus(StatusCode.SP_TO_BE_ASSIGNED);//审核状态设置为待指派
|
|
|
|
compliance.setAuditStatus(StatusCode.SP_TO_BE_ASSIGNED);//审核状态设置为待指派
|
|
|
|