|
|
@ -554,11 +554,11 @@ public class LoanBePadsincereApplyService extends MybatisBaseService<LoanBePadsi |
|
|
|
checkWord.add("期数不能为空"); |
|
|
|
break; |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getPeriod())){ |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getPeriod())) { |
|
|
|
String period = excelInfo.getPeriod(); |
|
|
|
Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$"); |
|
|
|
boolean matches = pattern.matcher(period).matches(); |
|
|
|
if (!matches){ |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("期数必须为数字"); |
|
|
|
break; |
|
|
|
} |
|
|
@ -567,11 +567,11 @@ public class LoanBePadsincereApplyService extends MybatisBaseService<LoanBePadsi |
|
|
|
checkWord.add("逾期本金不能为空"); |
|
|
|
break; |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getBePrincipal())){ |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getBePrincipal())) { |
|
|
|
String bePrincipal = excelInfo.getBePrincipal(); |
|
|
|
Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$"); |
|
|
|
boolean matches = pattern.matcher(bePrincipal).matches(); |
|
|
|
if (!matches){ |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("逾期本金必须为数字"); |
|
|
|
break; |
|
|
|
} |
|
|
@ -580,11 +580,11 @@ public class LoanBePadsincereApplyService extends MybatisBaseService<LoanBePadsi |
|
|
|
checkWord.add("逾期罚息不能为空"); |
|
|
|
break; |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getBeDefInter())){ |
|
|
|
if (StringUtils.isNotBlank(excelInfo.getBeDefInter())) { |
|
|
|
String beDefInter = excelInfo.getBeDefInter(); |
|
|
|
Pattern pattern = Pattern.compile("^[-\\+]?[\\d]*$"); |
|
|
|
boolean matches = pattern.matcher(beDefInter).matches(); |
|
|
|
if (!matches){ |
|
|
|
if (!matches) { |
|
|
|
checkWord.add("逾期罚息必须为数字"); |
|
|
|
break; |
|
|
|
} |
|
|
@ -848,6 +848,7 @@ public class LoanBePadsincereApplyService extends MybatisBaseService<LoanBePadsi |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
String businessSid = bv.getBusinessSid(); |
|
|
|
LoanBePadsincereApply loanBePadsincereApply = fetchBySid(businessSid); |
|
|
|
List<LoanBePadsincereVehDetailsVo> loanBePadsincereVehDetailsVos = loanBePadsincereVehService.selByMainSid(loanBePadsincereApply.getSid()); |
|
|
|
Map<String, Object> variables = new HashMap<>(); |
|
|
|
Map<String, Object> appMap = new HashMap<>(); |
|
|
|
appMap.put("sid", businessSid); |
|
|
@ -871,31 +872,33 @@ public class LoanBePadsincereApplyService extends MybatisBaseService<LoanBePadsi |
|
|
|
UpdateFlowFieldVo ufVo = resultBean.getData(); |
|
|
|
updateFlowFiled(BeanUtil.beanToMap(resultBean.getData())); |
|
|
|
if ("Event_end".equals(resultBean.getData().getTaskDefKey())) { |
|
|
|
FinPaymentrecordDto finPaymentrecordDto = new FinPaymentrecordDto(); |
|
|
|
finPaymentrecordDto.setApplySid(""); |
|
|
|
finPaymentrecordDto.setPayCompanySid(""); |
|
|
|
finPaymentrecordDto.setPayType(0); |
|
|
|
finPaymentrecordDto.setCreateOrgSid(loanBePadsincereApply.getUseOrgSid()); |
|
|
|
finPaymentrecordDto.setUseOrgSid(loanBePadsincereApply.getUseOrgSid()); |
|
|
|
finPaymentrecordDto.setCostTypeKey(""); |
|
|
|
finPaymentrecordDto.setCostTypeValue(""); |
|
|
|
finPaymentrecordDto.setCostTitleKey(""); |
|
|
|
finPaymentrecordDto.setCostTitleValue(""); |
|
|
|
finPaymentrecordDto.setReceiveBank(""); |
|
|
|
finPaymentrecordDto.setReceiveBankAccount(""); |
|
|
|
finPaymentrecordDto.setReceiveCompany(""); |
|
|
|
finPaymentrecordDto.setCost(0); |
|
|
|
finPaymentrecordDto.setAccountsReceive(0); |
|
|
|
finPaymentrecordDto.setBusSid(""); |
|
|
|
finPaymentrecordDto.setPayRemark(loanBePadsincereApply.getPaymentRemarks()); |
|
|
|
finPaymentrecordDto.setPayCode(""); |
|
|
|
finPaymentrecordDto.setCreateBySid(loanBePadsincereApply.getCreateBySid()); |
|
|
|
finPaymentrecordDto.setUpdateBySid(loanBePadsincereApply.getCreateBySid()); |
|
|
|
finPaymentrecordDto.setRemarks(loanBePadsincereApply.getRemarks()); |
|
|
|
finPaymentrecordDto.setPurchaseSystemSid(""); |
|
|
|
finPaymentrecordDto.setPurchaseSystemName(""); |
|
|
|
finPaymentrecordDto.setBusRemarks(loanBePadsincereApply.getPaymentRemarks()); |
|
|
|
finPaymentrecordFeign.save(finPaymentrecordDto); |
|
|
|
for (LoanBePadsincereVehDetailsVo loanBePadsincereVehDetailsVo : loanBePadsincereVehDetailsVos) { |
|
|
|
FinPaymentrecordDto finPaymentrecordDto = new FinPaymentrecordDto(); |
|
|
|
finPaymentrecordDto.setApplySid(loanBePadsincereApply.getSid()); |
|
|
|
finPaymentrecordDto.setPayCompanySid(""); |
|
|
|
finPaymentrecordDto.setPayType(1); |
|
|
|
finPaymentrecordDto.setCreateOrgSid(loanBePadsincereApply.getUseOrgSid()); |
|
|
|
finPaymentrecordDto.setUseOrgSid(loanBePadsincereApply.getUseOrgSid()); |
|
|
|
finPaymentrecordDto.setCostTypeKey("007"); |
|
|
|
finPaymentrecordDto.setCostTypeValue("垫款"); |
|
|
|
finPaymentrecordDto.setCostTitleKey("008"); |
|
|
|
finPaymentrecordDto.setCostTitleValue("月还"); |
|
|
|
finPaymentrecordDto.setReceiveBank(loanBePadsincereVehDetailsVo.getBankCollectionAcc()); |
|
|
|
finPaymentrecordDto.setReceiveBankAccount(loanBePadsincereVehDetailsVo.getBankCollectionNum()); |
|
|
|
finPaymentrecordDto.setReceiveCompany(""); |
|
|
|
finPaymentrecordDto.setCost(Integer.parseInt(loanBePadsincereVehDetailsVo.getPadMoney())); |
|
|
|
finPaymentrecordDto.setAccountsReceive(Integer.parseInt(loanBePadsincereVehDetailsVo.getPadMoney())); |
|
|
|
finPaymentrecordDto.setBusSid(loanBePadsincereApply.getSid()); |
|
|
|
finPaymentrecordDto.setPayRemark(loanBePadsincereApply.getPaymentRemarks()); |
|
|
|
finPaymentrecordDto.setPayCode(""); |
|
|
|
finPaymentrecordDto.setCreateBySid(loanBePadsincereApply.getCreateBySid()); |
|
|
|
finPaymentrecordDto.setUpdateBySid(loanBePadsincereApply.getCreateBySid()); |
|
|
|
finPaymentrecordDto.setRemarks(loanBePadsincereApply.getRemarks()); |
|
|
|
finPaymentrecordDto.setPurchaseSystemSid(""); |
|
|
|
finPaymentrecordDto.setPurchaseSystemName(""); |
|
|
|
finPaymentrecordDto.setBusRemarks(loanBePadsincereApply.getPaymentRemarks()); |
|
|
|
finPaymentrecordFeign.save(finPaymentrecordDto); |
|
|
|
} |
|
|
|
} else { |
|
|
|
//极光推送
|
|
|
|
loanBePadsincereApply = fetchBySid(businessSid); |
|
|
|