Browse Source

测试问题修改

master
God 1 year ago
parent
commit
b6b6330fb0
  1. 65
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbepadsincereapply/LoanBePadsincereApplyService.java
  2. 1
      anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsMapper.xml
  3. 4
      anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/risk/becollection/AppBeCollectionVehDetailsVo.java
  4. 8
      anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/biz/risk/becollection/BeCollectionService.java

65
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanbepadsincereapply/LoanBePadsincereApplyService.java

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

1
anrui-riskcenter/anrui-riskcenter-biz/src/main/java/com/yxt/anrui/riskcenter/biz/loanrepaymentplandetails/LoanRepaymentPlanDetailsMapper.xml

@ -53,6 +53,7 @@
AND lrpd.period = #{period} AND lrpd.period = #{period}
AND lrpd.bankContractNo = #{bankContractNo} AND lrpd.bankContractNo = #{bankContractNo}
AND DATE_FORMAT(lrpd.dueDate, '%Y-%m-%d') &lt; CURDATE() AND DATE_FORMAT(lrpd.dueDate, '%Y-%m-%d') &lt; CURDATE()
AND lrh.`updateState` = '1'
GROUP BY lrpd.`sid` GROUP BY lrpd.`sid`
HAVING (yq_total > 0) HAVING (yq_total > 0)
</select> </select>

4
anrui-terminal/anrui-terminal-api/src/main/java/com/yxt/anrui/terminal/api/risk/becollection/AppBeCollectionVehDetailsVo.java

@ -56,6 +56,10 @@ public class AppBeCollectionVehDetailsVo implements Vo {
@ApiModelProperty("是否有担保人") @ApiModelProperty("是否有担保人")
private Boolean showDbr = false; private Boolean showDbr = false;
@ApiModelProperty("是否有还款协议")
private Boolean showXy = false;
@ApiModelProperty("是否有远程控制")
private Boolean showYckz = false;
@ApiModelProperty("销售订单车辆sid") @ApiModelProperty("销售订单车辆sid")
private String saleVehSid; private String saleVehSid;
@ApiModelProperty("贷款合同编号") @ApiModelProperty("贷款合同编号")

8
anrui-terminal/anrui-terminal-biz/src/main/java/com/yxt/anrui/terminal/biz/risk/becollection/BeCollectionService.java

@ -307,9 +307,15 @@ public class BeCollectionService {
AppBeCollectionVehDetailsVo appBeCollectionVehDetailsVo = new AppBeCollectionVehDetailsVo(); AppBeCollectionVehDetailsVo appBeCollectionVehDetailsVo = new AppBeCollectionVehDetailsVo();
appBeCollectionVehDetailsVo.setSaleVehSid(loanBeCollectionVehDetail.getSaleVehSid()); appBeCollectionVehDetailsVo.setSaleVehSid(loanBeCollectionVehDetail.getSaleVehSid());
LoanBeCollectionVehDbrDetailsVo loanBeCollectionVehDbrDetailsVo = loanBeCollectionVehFeign.initDbr(loanBeCollectionVehDetail.getSaleVehSid()).getData(); LoanBeCollectionVehDbrDetailsVo loanBeCollectionVehDbrDetailsVo = loanBeCollectionVehFeign.initDbr(loanBeCollectionVehDetail.getSaleVehSid()).getData();
if (StringUtils.isNotBlank(loanBeCollectionVehDbrDetailsVo.getPeoName())) { if (StringUtils.isNotBlank(loanBeCollectionVehDbrDetailsVo.getPeoName()) && collMeasures.contains("增加担保人")) {
appBeCollectionVehDetailsVo.setShowDbr(true); appBeCollectionVehDetailsVo.setShowDbr(true);
} }
if (collMeasures.contains("远程控制")){
appBeCollectionVehDetailsVo.setShowYckz(true);
}
if (collMeasures.contains("签订还款协议")){
appBeCollectionVehDetailsVo.setShowXy(true);
}
appBeCollectionVehDetailsVo.setContractId(loanBeCollectionVehDetail.getLoanContractNo()); appBeCollectionVehDetailsVo.setContractId(loanBeCollectionVehDetail.getLoanContractNo());
appBeCollectionVehDetailsVo.setVin(loanBeCollectionVehDetail.getVinNo()); appBeCollectionVehDetailsVo.setVin(loanBeCollectionVehDetail.getVinNo());
appBeCollectionVehDetailsVo.setCarNum(loanBeCollectionVehDetail.getCarNum()); appBeCollectionVehDetailsVo.setCarNum(loanBeCollectionVehDetail.getCarNum());

Loading…
Cancel
Save