|
@ -626,6 +626,8 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
//保存还款记录
|
|
|
//保存还款记录
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
|
|
Set<String> setMsg = new HashSet<>(); |
|
|
|
|
|
StringBuffer sb = new StringBuffer(); |
|
|
if (!dto.isEmpty()) { |
|
|
if (!dto.isEmpty()) { |
|
|
for (RepaymentExcelInfo repaymentExcelInfo : dto) { |
|
|
for (RepaymentExcelInfo repaymentExcelInfo : dto) { |
|
|
List<LoanRepaymentPlanDetails> planDetails = loanRepaymentPlanDetailsService.selPlanByNoAndPeriod(repaymentExcelInfo.getBankContractNo(), repaymentExcelInfo.getPeriod()); |
|
|
List<LoanRepaymentPlanDetails> planDetails = loanRepaymentPlanDetailsService.selPlanByNoAndPeriod(repaymentExcelInfo.getBankContractNo(), repaymentExcelInfo.getPeriod()); |
|
@ -639,7 +641,27 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
check = loanRepaymentPlanDetailsService.InsertForCheckPaymentAndBankOther(planDetail.getSid()); |
|
|
check = loanRepaymentPlanDetailsService.InsertForCheckPaymentAndBankOther(planDetail.getSid()); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(check)) { |
|
|
if (StringUtils.isNotBlank(check)) { |
|
|
if (!check.equals("0")) { |
|
|
if (check.equals("0")) { |
|
|
|
|
|
setMsg.add("资方合同号" + planDetail.getBankContractNo() + "第" + planDetail.getPeriod() + "期"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (setMsg.size() > 0) { |
|
|
|
|
|
for (String s : setMsg) { |
|
|
|
|
|
sb.append(s).append("、"); |
|
|
|
|
|
} |
|
|
|
|
|
if (sb.length() > 0) { |
|
|
|
|
|
sb.delete(sb.length() - 1, sb.length()); |
|
|
|
|
|
} |
|
|
|
|
|
sb.append("为非退还垫款导入直还数据,导入失败!"); |
|
|
|
|
|
return rb.setMsg(sb.toString()); |
|
|
|
|
|
} else { |
|
|
|
|
|
for (RepaymentExcelInfo repaymentExcelInfo : dto) { |
|
|
|
|
|
List<LoanRepaymentPlanDetails> planDetails = loanRepaymentPlanDetailsService.selPlanByNoAndPeriod(repaymentExcelInfo.getBankContractNo(), repaymentExcelInfo.getPeriod()); |
|
|
|
|
|
if (!planDetails.isEmpty()) { |
|
|
|
|
|
for (LoanRepaymentPlanDetails planDetail : planDetails) { |
|
|
LoanRepaymentHistory repaymentHistory = new LoanRepaymentHistory(); |
|
|
LoanRepaymentHistory repaymentHistory = new LoanRepaymentHistory(); |
|
|
repaymentHistory.setBuckle("未申请"); |
|
|
repaymentHistory.setBuckle("未申请"); |
|
|
repaymentHistory.setBuckleKey("001"); |
|
|
repaymentHistory.setBuckleKey("001"); |
|
@ -662,7 +684,6 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
return rb.success(); |
|
|
return rb.success(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -1817,7 +1838,6 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<RecordCountVo> exportStatisticsExcel(RepaymentStatisticsQuery pagerQuery) { |
|
|
public List<RecordCountVo> exportStatisticsExcel(RepaymentStatisticsQuery pagerQuery) { |
|
|
QueryWrapper<LoanRepaymentHistory> qw = new QueryWrapper<>(); |
|
|
QueryWrapper<LoanRepaymentHistory> qw = new QueryWrapper<>(); |
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); |
|
|