|
|
|
@ -62,6 +62,9 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL |
|
|
|
|
@Autowired |
|
|
|
|
private DgLoanCommitteeConsiderMapper loanCommitteeConsiderMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private AlInsuranceListMapper alInsuranceListMapper; |
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
private HrmsFeignService hrmsFeignService; |
|
|
|
|
/** |
|
|
|
@ -135,13 +138,13 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL |
|
|
|
|
businessProcessStatusQueryWrapper.eq("business_id",businessId); |
|
|
|
|
DgBusinessProcessStatus dgBusinessProcessStatus = businessProcessStatusMapper.selectOne(businessProcessStatusQueryWrapper); |
|
|
|
|
dgBusinessProcessStatus.setBusinessStatus(StatusCode.YW_COMPLETED); |
|
|
|
|
int updateById = businessProcessStatusMapper.updateById(dgBusinessProcessStatus); |
|
|
|
|
businessProcessStatusMapper.updateById(dgBusinessProcessStatus); |
|
|
|
|
//查询保后管理的相关数据
|
|
|
|
|
DgApplyAmountInfo applyAmountInfo = applyAmountInfoMapper.selectById(businessId); |
|
|
|
|
String bank = applyAmountInfo.getBank(); |
|
|
|
|
String businessCode = applyAmountInfo.getBusinessCode(); |
|
|
|
|
String businessType = applyAmountInfo.getBusinessType(); |
|
|
|
|
Date createTime = applyAmountInfo.getCreateTime(); |
|
|
|
|
Integer companyId = applyAmountInfo.getCompanyId(); |
|
|
|
|
String amountWide = applyAmountInfo.getAmountWide(); |
|
|
|
|
Integer presenterId = applyAmountInfo.getPresenterId(); |
|
|
|
|
DgBusinessCompany businessCompany = businessCompanyMapper.selectOne(new QueryWrapper<DgBusinessCompany>().eq("business_id", businessId)); |
|
|
|
@ -161,6 +164,7 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL |
|
|
|
|
alInsuranceList.setGuaranteeAmount(BigDecimal.valueOf(loanMoney*10000)); |
|
|
|
|
alInsuranceList.setGuaranteeTime(loanTern); |
|
|
|
|
alInsuranceList.setAmountWide(amountWide); |
|
|
|
|
alInsuranceList.setPaymentStatus(1); |
|
|
|
|
ArrayList<Integer> arr = new ArrayList<>(); |
|
|
|
|
arr.add(presenterId); |
|
|
|
|
//根据提单人id查询其部门名称
|
|
|
|
@ -176,9 +180,10 @@ public class DgLoanNoticeServiceImpl extends ServiceImpl<DgLoanNoticeMapper, DgL |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
//更新成功,返回操作结果
|
|
|
|
|
log.info(updateById > 0 ? "业务流程已完成" : "业务流程已完成更新失败"); |
|
|
|
|
return updateById > 0; |
|
|
|
|
int insert = alInsuranceListMapper.insert(alInsuranceList); |
|
|
|
|
//添加成功,返回操作结果
|
|
|
|
|
log.info(insert > 0 ? "业务流程已完成,进入保后管理" : "业务流程更新失败"); |
|
|
|
|
return insert > 0; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|