|
|
@ -201,26 +201,14 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
|
} |
|
|
|
} |
|
|
|
} catch (Exception e) { |
|
|
|
if (StringUtils.isBlank(trim)) { |
|
|
|
String word = new String(); |
|
|
|
switch (i) { |
|
|
|
case 0: |
|
|
|
word = "资方合同号"; |
|
|
|
break; |
|
|
|
case 1: |
|
|
|
word = "期数"; |
|
|
|
break; |
|
|
|
case 2: |
|
|
|
word = "实还日期"; |
|
|
|
break; |
|
|
|
case 3: |
|
|
|
word = "实还金额"; |
|
|
|
break; |
|
|
|
default: |
|
|
|
break; |
|
|
|
if (StringUtils.isNotBlank(trim)) { |
|
|
|
if (i == 2) { |
|
|
|
checkWord.add("请导入正确的日期格式,如:2024-01-01"); |
|
|
|
importVo.setRealReturnTime("error"); |
|
|
|
continue; |
|
|
|
} |
|
|
|
// String checkResult = "第" + (r + 1) + "行" + word + "为空";
|
|
|
|
// sb.append(checkResult).append(";");
|
|
|
|
} |
|
|
|
if (StringUtils.isBlank(trim)) { |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
@ -241,7 +229,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
|
try { |
|
|
|
sdf.parse(excelInfo.getRealReturnTime()); |
|
|
|
} catch (ParseException e) { |
|
|
|
checkWord.add("请导入正确的日期格式,如:2023-01-01"); |
|
|
|
checkWord.add("请导入正确的日期格式,如:2024-01-01"); |
|
|
|
e.printStackTrace(); |
|
|
|
} |
|
|
|
} |
|
|
@ -648,7 +636,7 @@ public class LoanRepaymentHistoryService extends MybatisBaseService<LoanRepaymen |
|
|
|
List<LoanRepaymentPlanDetails> planDetails = loanRepaymentPlanDetailsService.selPlanByNoAndPeriod(repaymentExcelInfo.getBankContractNo(), repaymentExcelInfo.getPeriod()); |
|
|
|
if (!planDetails.isEmpty()) { |
|
|
|
for (LoanRepaymentPlanDetails planDetail : planDetails) { |
|
|
|
String check = loanRepaymentPlanDetailsService.InsertForCheckPaymentAndBank(planDetail.getSid()); |
|
|
|
// String check = loanRepaymentPlanDetailsService.InsertForCheckPaymentAndBank(planDetail.getSid());
|
|
|
|
|
|
|
|
|
|
|
|
LoanRepaymentHistory repaymentHistory = new LoanRepaymentHistory(); |
|
|
|