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