|
|
|
@ -169,11 +169,14 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
//查询担保部经理审核的金额和期限
|
|
|
|
|
DgGuaranteeAssignUser assignUser = this.baseMapper.selectOne(new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type", 3)); |
|
|
|
|
guaranteeAssignUser.setAmount(assignUser.getAmount()); |
|
|
|
|
guaranteeAssignUser.setTerm(assignUser.getTerm()); |
|
|
|
|
|
|
|
|
|
GuaranteeDetailResponse guaranteeDetailResponse = new GuaranteeDetailResponse(); |
|
|
|
|
guaranteeDetailResponse.setDgApplyAmountInfo(dgApplyAmountInfo); |
|
|
|
|
guaranteeDetailResponse.setDgEnclosureInfo(dgEnclosureInfo); |
|
|
|
|
guaranteeDetailResponse.setLinkedHashMap(linkedList); |
|
|
|
|
guaranteeDetailResponse.setAssignUser(assignUser); |
|
|
|
|
guaranteeDetailResponse.setAssignUser(guaranteeAssignUser); |
|
|
|
|
return guaranteeDetailResponse; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -214,13 +217,20 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
.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());//审核意见
|
|
|
|
|
|
|
|
|
|
if(investigateGuaranteeRequest.getIsSaveOrCommit()==1){//提交
|
|
|
|
|
//AB角调查,修改审核意见以及状态
|
|
|
|
|
dgGuaranteeAssignUser.setStatus(investigateGuaranteeRequest.getStatus());//状态为审核中
|
|
|
|
|
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
|
|
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
|
}else{//保存
|
|
|
|
|
dgGuaranteeAssignUser.setStatus(StatusCode.SP_IN_REVIEW);//审批状态 设置为审核中
|
|
|
|
|
dgGuaranteeAssignUser.setOperatingStatus(StatusCode.CZ_ON_HAND);//操作状态设置为待处理
|
|
|
|
|
this.baseMapper.updateById(dgGuaranteeAssignUser); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (investigateGuaranteeRequest.getStatus().equals(StatusCode.SP_REJECT)) {//驳回情况处理
|
|
|
|
@ -242,6 +252,13 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
assignUser.setStatus(StatusCode.SP_REJECT);//驳回
|
|
|
|
|
this.baseMapper.update(assignUser, new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
.eq("business_id", guaranteeAssignUser.getBusinessId())); |
|
|
|
|
|
|
|
|
|
DgGuaranteeAssignUser assignUser2 = new DgGuaranteeAssignUser(); |
|
|
|
|
assignUser2.setOperatingStatus(StatusCode.CZ_PROCESSED);//操作状态设置为已处理
|
|
|
|
|
this.baseMapper.update(assignUser2, new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type",1)); |
|
|
|
|
this.baseMapper.update(assignUser2, new QueryWrapper<DgGuaranteeAssignUser>() |
|
|
|
|
.eq("business_id", guaranteeAssignUser.getBusinessId()).eq("type",2)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//判断A角和B角是否都调查通过,如果都审核通过,修改担保部经理操作状态为待处理
|
|
|
|
@ -327,6 +344,10 @@ public class DgGuaranteeAssignUserServiceImpl extends ServiceImpl<DgGuaranteeAss |
|
|
|
|
dgEnclosureInfo.setConversationSummary(ArraysUtil.toString(investigateGuaranteeRequest.getConversationSummary())); |
|
|
|
|
dgEnclosureInfo.setInspectionPhotos(ArraysUtil.toString(investigateGuaranteeRequest.getInspectionPhotos())); |
|
|
|
|
|
|
|
|
|
//根据业务id查询对应的附件信息
|
|
|
|
|
DgEnclosureInfo dgEnclosureInfo1 = dgEnclosureInfoMapper.selectOne(new QueryWrapper<DgEnclosureInfo>().eq("business_id", guaranteeAssignUser.getBusinessId())); |
|
|
|
|
dgEnclosureInfo.setOtherFile(dgEnclosureInfo1.getOtherFile());//其他附件
|
|
|
|
|
|
|
|
|
|
//根据业务id删除对应的附件信息
|
|
|
|
|
dgEnclosureInfoMapper.delete(new QueryWrapper<DgEnclosureInfo>().eq("business_id", guaranteeAssignUser.getBusinessId())); |
|
|
|
|
//附件新增
|
|
|
|
|