|
@ -42,10 +42,7 @@ import com.yxt.anrui.riskcenter.api.loanrepaymenthistory.LoanRepaymentHistory; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetails; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetails; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetailsDto; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentplandetails.LoanRepaymentPlanDetailsDto; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.*; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.*; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.historyData.HistoryDataImportVo; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.historyData.*; |
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.historyData.ImportSleepData; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.historyData.ReturnMsg; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loanrepaymentschedule.historyData.ReturnSleepMsp; |
|
|
|
|
|
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutions; |
|
|
import com.yxt.anrui.riskcenter.api.loansolutions.LoanSolutions; |
|
|
import com.yxt.anrui.riskcenter.api.loansolutions.app.SolutionsDetailsVo; |
|
|
import com.yxt.anrui.riskcenter.api.loansolutions.app.SolutionsDetailsVo; |
|
|
import com.yxt.anrui.riskcenter.api.loansolutionsotherpolicy.LoanSolutionsOtherpolicy; |
|
|
import com.yxt.anrui.riskcenter.api.loansolutionsotherpolicy.LoanSolutionsOtherpolicy; |
|
@ -72,6 +69,7 @@ import com.yxt.common.core.vo.PagerVo; |
|
|
import com.yxt.messagecenter.api.message.MessageFeign; |
|
|
import com.yxt.messagecenter.api.message.MessageFeign; |
|
|
import com.yxt.messagecenter.api.message.PushMessageQuery; |
|
|
import com.yxt.messagecenter.api.message.PushMessageQuery; |
|
|
import com.yxt.messagecenter.api.message.PushSmsDto; |
|
|
import com.yxt.messagecenter.api.message.PushSmsDto; |
|
|
|
|
|
import io.swagger.annotations.ApiModelProperty; |
|
|
import org.apache.commons.lang3.time.DateUtils; |
|
|
import org.apache.commons.lang3.time.DateUtils; |
|
|
import org.apache.poi.hssf.usermodel.HSSFDateUtil; |
|
|
import org.apache.poi.hssf.usermodel.HSSFDateUtil; |
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
|
|
import org.apache.poi.hssf.usermodel.HSSFWorkbook; |
|
@ -159,6 +157,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
private FinUncollectedReceivablesDetailedJRFeign finUncollectedReceivablesDetailedJRFeign; |
|
|
private FinUncollectedReceivablesDetailedJRFeign finUncollectedReceivablesDetailedJRFeign; |
|
|
@Autowired |
|
|
@Autowired |
|
|
private LoanPushFundHistoryService loanPushFundHistoryService; |
|
|
private LoanPushFundHistoryService loanPushFundHistoryService; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* 根据销售订单SID生成还款计划表回显 |
|
|
* 根据销售订单SID生成还款计划表回显 |
|
|
* |
|
|
* |
|
@ -368,6 +367,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
LoanRepaymentSchedule loanRepaymentSchedule = baseMapper.selectByContractSid(dto.getSalesOrderSid()); |
|
|
LoanRepaymentSchedule loanRepaymentSchedule = baseMapper.selectByContractSid(dto.getSalesOrderSid()); |
|
|
String orderSid = ""; |
|
|
String orderSid = ""; |
|
|
String scheduleSid = ""; |
|
|
String scheduleSid = ""; |
|
|
|
|
|
BigDecimal bondAmounts = BigDecimal.ZERO;//贷款保证金
|
|
|
BusSalesOrderLoancontractDetailsVo loancontract = busSalesOrderLoancontractFeign.fetchDetailsBySid(dto.getSalesOrderSid()).getData(); |
|
|
BusSalesOrderLoancontractDetailsVo loancontract = busSalesOrderLoancontractFeign.fetchDetailsBySid(dto.getSalesOrderSid()).getData(); |
|
|
if (null != loancontract) { |
|
|
if (null != loancontract) { |
|
|
if (StringUtils.isNotBlank(loancontract.getSalesOrderSid())) { |
|
|
if (StringUtils.isNotBlank(loancontract.getSalesOrderSid())) { |
|
@ -378,6 +378,9 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
ResultBean<SolutionsDetailsVo> solutionsDetailsVoResultBean = loanSolutionsService.selectDetailss(orderSid); |
|
|
ResultBean<SolutionsDetailsVo> solutionsDetailsVoResultBean = loanSolutionsService.selectDetailss(orderSid); |
|
|
if (solutionsDetailsVoResultBean.getData() != null) { |
|
|
if (solutionsDetailsVoResultBean.getData() != null) { |
|
|
BeanUtil.copyProperties(solutionsDetailsVoResultBean.getData(), solutionsDetailsssVo); |
|
|
BeanUtil.copyProperties(solutionsDetailsVoResultBean.getData(), solutionsDetailsssVo); |
|
|
|
|
|
if (StringUtils.isNotBlank(solutionsDetailsVoResultBean.getData().getBondAmounts())) { |
|
|
|
|
|
bondAmounts = new BigDecimal(solutionsDetailsVoResultBean.getData().getBondAmounts()); |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
if (StringUtils.isBlank(dto.getMainRepayDate())) { |
|
|
if (StringUtils.isBlank(dto.getMainRepayDate())) { |
|
|
return rb.setMsg("请选择主金融产品首期还款日!"); |
|
|
return rb.setMsg("请选择主金融产品首期还款日!"); |
|
@ -460,6 +463,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
BeanUtil.copyProperties(dto, loanRepaymentSchedule, "id", "sid"); |
|
|
BeanUtil.copyProperties(dto, loanRepaymentSchedule, "id", "sid"); |
|
|
loanRepaymentSchedule.setLoanContractSid(dto.getSalesOrderSid()); |
|
|
loanRepaymentSchedule.setLoanContractSid(dto.getSalesOrderSid()); |
|
|
loanRepaymentSchedule.setSalesOrderSid(orderSid); |
|
|
loanRepaymentSchedule.setSalesOrderSid(orderSid); |
|
|
|
|
|
loanRepaymentSchedule.setBondAmounts(bondAmounts); |
|
|
if (StringUtils.isNotBlank(dto.getOtherBankNo())) { |
|
|
if (StringUtils.isNotBlank(dto.getOtherBankNo())) { |
|
|
loanRepaymentSchedule.setOtherBankNo(dto.getOtherBankNo()); |
|
|
loanRepaymentSchedule.setOtherBankNo(dto.getOtherBankNo()); |
|
|
} |
|
|
} |
|
@ -1224,6 +1228,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|
|
BeanUtil.copyProperties(dto, entity, "id", "sid"); |
|
|
entity.setLoanContractSid(dto.getSalesOrderSid()); |
|
|
entity.setLoanContractSid(dto.getSalesOrderSid()); |
|
|
entity.setSalesOrderSid(orderSid); |
|
|
entity.setSalesOrderSid(orderSid); |
|
|
|
|
|
entity.setBondAmounts(bondAmounts); |
|
|
if (StringUtils.isNotBlank(dto.getUserSid())) { |
|
|
if (StringUtils.isNotBlank(dto.getUserSid())) { |
|
|
entity.setCreateBySid(dto.getUserSid()); |
|
|
entity.setCreateBySid(dto.getUserSid()); |
|
|
} |
|
|
} |
|
@ -5199,10 +5204,10 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
contracts.add(bsl); |
|
|
contracts.add(bsl); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
vehicleData.setTemporaryNo(borrowerNo); |
|
|
vehicleData.setTemporaryNo(borrowerNo); |
|
|
vehicleData.setBorrowerSid(borrowerSid); |
|
|
vehicleData.setBorrowerSid(borrowerSid); |
|
|
vehicleData.setLoanContractSid(loanContractSid); |
|
|
vehicleData.setLoanContractSid(loanContractSid); |
|
|
updateVehicles.add(vehicleData); |
|
|
updateVehicles.add(vehicleData); |
|
|
} else { |
|
|
} else { |
|
|
//生成销售订单贷款人表
|
|
|
//生成销售订单贷款人表
|
|
|
BusSalesOrderBorrower busSalesOrderBorrower = new BusSalesOrderBorrower(); |
|
|
BusSalesOrderBorrower busSalesOrderBorrower = new BusSalesOrderBorrower(); |
|
@ -5598,6 +5603,117 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
return returnList; |
|
|
return returnList; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ResultBean importBondAmountsData(MultipartFile file, HttpServletRequest request) { |
|
|
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
|
|
try { |
|
|
|
|
|
String temp = request.getSession().getServletContext().getRealPath(File.separator) + "temp";// 临时目录
|
|
|
|
|
|
File tempFile = new File(temp); |
|
|
|
|
|
if (!tempFile.exists()) { |
|
|
|
|
|
tempFile.mkdirs(); |
|
|
|
|
|
} |
|
|
|
|
|
String fileName = file.getOriginalFilename(); |
|
|
|
|
|
if (!fileName.matches("^.+\\.(?i)(xls)$") && !fileName.matches("^.+\\.(?i)(xlsx)$")) { |
|
|
|
|
|
return rb.fail().setMsg("上传文件不正确"); |
|
|
|
|
|
} |
|
|
|
|
|
boolean isExcel2003 = true; |
|
|
|
|
|
if (fileName.matches("^.+\\.(?i)(xlsx)$")) { |
|
|
|
|
|
isExcel2003 = false; |
|
|
|
|
|
} |
|
|
|
|
|
InputStream is = file.getInputStream(); |
|
|
|
|
|
Workbook wb = null; |
|
|
|
|
|
if (isExcel2003) { |
|
|
|
|
|
wb = new HSSFWorkbook(is); |
|
|
|
|
|
} else { |
|
|
|
|
|
wb = new XSSFWorkbook(is); |
|
|
|
|
|
} |
|
|
|
|
|
Sheet sheet = wb.getSheetAt(0); |
|
|
|
|
|
List<ImportBondAmountsVo> list = getBondAmountsSheetVal(sheet); |
|
|
|
|
|
StringBuffer sbMsg = new StringBuffer(); |
|
|
|
|
|
Set<String> setMsg = new HashSet<>(); |
|
|
|
|
|
List<ImportBondAmountsUpdate> updates = new ArrayList<>(); |
|
|
|
|
|
if (!list.isEmpty() && list.size() > 0) { |
|
|
|
|
|
for (ImportBondAmountsVo vo : list) { |
|
|
|
|
|
String vinNo = vo.getVinNo(); |
|
|
|
|
|
String bondAmounts = vo.getBondAmounts(); |
|
|
|
|
|
String sid = baseMapper.selSidByVinNo(vinNo); |
|
|
|
|
|
if (StringUtils.isBlank(sid)) { |
|
|
|
|
|
setMsg.add(vinNo); |
|
|
|
|
|
} else { |
|
|
|
|
|
ImportBondAmountsUpdate update = new ImportBondAmountsUpdate(); |
|
|
|
|
|
update.setSid(sid); |
|
|
|
|
|
update.setBondAmounts(bondAmounts); |
|
|
|
|
|
updates.add(update); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (null != setMsg && setMsg.size() > 0) { |
|
|
|
|
|
for (String s : setMsg) { |
|
|
|
|
|
sbMsg.append(s).append("、"); |
|
|
|
|
|
} |
|
|
|
|
|
sbMsg.delete(sbMsg.length() - 1, sbMsg.length()); |
|
|
|
|
|
if (StringUtils.isNotBlank(sbMsg.toString())) { |
|
|
|
|
|
return rb.setMsg("车架号" + sbMsg.toString() + "不存在,导入失败"); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
if (!updates.isEmpty()) { |
|
|
|
|
|
baseMapper.updateBoundsBySid(updates); |
|
|
|
|
|
} |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
return rb.success().setMsg("导入成功"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private List<ImportBondAmountsVo> getBondAmountsSheetVal(Sheet sheet) { |
|
|
|
|
|
List<ImportBondAmountsVo> list = new ArrayList<>(); |
|
|
|
|
|
Row row1 = sheet.getRow(0); |
|
|
|
|
|
Map<Integer, String> header = new HashMap<>(); |
|
|
|
|
|
Map<String, String> map = new HashMap<>(); |
|
|
|
|
|
for (int i = 0; i < 3; i++) { |
|
|
|
|
|
String trim = new String(); |
|
|
|
|
|
try { |
|
|
|
|
|
trim = getCellVal(row1.getCell(i)).toString().trim(); |
|
|
|
|
|
String temp = getCellVal(row1.getCell(i)).toString().trim(); |
|
|
|
|
|
if (StringUtils.isNotBlank(temp)) { |
|
|
|
|
|
header.put(i, temp); |
|
|
|
|
|
} |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
for (int r = 2; r <= sheet.getLastRowNum(); r++) { |
|
|
|
|
|
ImportBondAmountsVo info = new ImportBondAmountsVo(); |
|
|
|
|
|
Row row = sheet.getRow(r); |
|
|
|
|
|
if (row == null) { |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
for (int i = 0; i < header.size(); i++) { |
|
|
|
|
|
try { |
|
|
|
|
|
String temp = ""; |
|
|
|
|
|
if (null != getCellVal(row.getCell(i))) { |
|
|
|
|
|
temp = getCellVal(row.getCell(i)).toString().trim(); |
|
|
|
|
|
} |
|
|
|
|
|
String head = header.get(i); |
|
|
|
|
|
String field = ""; |
|
|
|
|
|
if (StringUtils.isNotBlank(temp)) { |
|
|
|
|
|
field = temp; |
|
|
|
|
|
} |
|
|
|
|
|
if (head.equals("八位车架号")) { |
|
|
|
|
|
info.setVinNo(field); |
|
|
|
|
|
} |
|
|
|
|
|
if (head.equals("保证金")) { |
|
|
|
|
|
info.setBondAmounts(field); |
|
|
|
|
|
} |
|
|
|
|
|
} catch (Exception e) { |
|
|
|
|
|
e.printStackTrace(); |
|
|
|
|
|
continue; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
list.add(info); |
|
|
|
|
|
} |
|
|
|
|
|
return list; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
public ResultBean importHistoryData(MultipartFile file, String userSid, HttpServletRequest request) { |
|
|
public ResultBean importHistoryData(MultipartFile file, String userSid, HttpServletRequest request) { |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
try { |
|
|
try { |
|
@ -5778,12 +5894,12 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
String customerSid = ""; |
|
|
String customerSid = ""; |
|
|
String customerName = ""; |
|
|
String customerName = ""; |
|
|
if (null != order) { |
|
|
if (null != order) { |
|
|
if (StringUtils.isNotBlank(order.getCustomerSid())) { |
|
|
if (StringUtils.isNotBlank(order.getCustomerSid())) { |
|
|
customerSid = order.getCustomerSid(); |
|
|
customerSid = order.getCustomerSid(); |
|
|
} |
|
|
} |
|
|
if (StringUtils.isNotBlank(order.getCustomerName())) { |
|
|
if (StringUtils.isNotBlank(order.getCustomerName())) { |
|
|
customerName = order.getCustomerName(); |
|
|
customerName = order.getCustomerName(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
String orgSidPath = otherSchedule.getOrgSidPath(); |
|
|
String orgSidPath = otherSchedule.getOrgSidPath(); |
|
|
SysOrganizationVo deptData = sysOrganizationFeign.selectByOrgSidPath(orgSidPath).getData(); |
|
|
SysOrganizationVo deptData = sysOrganizationFeign.selectByOrgSidPath(orgSidPath).getData(); |
|
@ -6074,7 +6190,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
fundDay.setIsEnable(3); |
|
|
fundDay.setIsEnable(3); |
|
|
loanFundDays.add(fundDay); |
|
|
loanFundDays.add(fundDay); |
|
|
//生成资金占用费计提记录
|
|
|
//生成资金占用费计提记录
|
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setFund(B); |
|
|
pushFundHistory.setFund(B); |
|
|
pushFundHistory.setBusVinSid(plan.getBusVinSid()); |
|
|
pushFundHistory.setBusVinSid(plan.getBusVinSid()); |
|
@ -6209,7 +6325,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
loanFundDays.add(fundDay); |
|
|
loanFundDays.add(fundDay); |
|
|
//生成资金占用费计提记录
|
|
|
//生成资金占用费计提记录
|
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
@ -6337,7 +6453,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
loanFundDays.add(fundDay); |
|
|
loanFundDays.add(fundDay); |
|
|
//生成资金占用费计提记录
|
|
|
//生成资金占用费计提记录
|
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
@ -6434,7 +6550,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
fundDay.setBusSid(plan.getSid()); |
|
|
fundDay.setBusSid(plan.getSid()); |
|
|
loanFundDays.add(fundDay); |
|
|
loanFundDays.add(fundDay); |
|
|
//生成资金占用费计提记录
|
|
|
//生成资金占用费计提记录
|
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setFund(B); |
|
|
pushFundHistory.setFund(B); |
|
|
pushFundHistory.setBusVinSid(plan.getBusVinSid()); |
|
|
pushFundHistory.setBusVinSid(plan.getBusVinSid()); |
|
@ -6587,7 +6703,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
loanFundDays.add(fundDay); |
|
|
loanFundDays.add(fundDay); |
|
|
//生成资金占用费计提记录
|
|
|
//生成资金占用费计提记录
|
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
@ -6715,7 +6831,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
fundDay.setBusSid(p.getSid()); |
|
|
loanFundDays.add(fundDay); |
|
|
loanFundDays.add(fundDay); |
|
|
//生成资金占用费计提记录
|
|
|
//生成资金占用费计提记录
|
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
LoanPushFundHistory pushFundHistory = new LoanPushFundHistory(); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setCreateBySid(userSid); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setFund(B1); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
|
pushFundHistory.setBusVinSid(p.getBusVinSid()); |
|
@ -6819,7 +6935,7 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
LocalDate endDate = LocalDate.of(y1, m1, d1); |
|
|
LocalDate endDate = LocalDate.of(y1, m1, d1); |
|
|
Period period = Period.between(startDate, endDate); |
|
|
Period period = Period.between(startDate, endDate); |
|
|
int totalMonths = period.getDays() == 0 ? |
|
|
int totalMonths = period.getDays() == 0 ? |
|
|
period.getYears() * 12 + period.getMonths() - 1: period.getYears() * 12 + period.getMonths(); |
|
|
period.getYears() * 12 + period.getMonths() - 1 : period.getYears() * 12 + period.getMonths(); |
|
|
return totalMonths + 1; |
|
|
return totalMonths + 1; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -7278,4 +7394,6 @@ public class LoanRepaymentScheduleService extends MybatisBaseService<LoanRepayme |
|
|
} |
|
|
} |
|
|
return rb.success().setData(bankOrOtherBank); |
|
|
return rb.success().setData(bankOrOtherBank); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|