|
|
@ -187,7 +187,12 @@ public class ScheduledRepaymentPlanDetailsService { |
|
|
|
List<String> useOrgSidList = loanRepaymentPlanDetailsService.selUseOrgSidListForFundVoucher(); |
|
|
|
useOrgSidList.removeAll(Collections.singleton(null)); |
|
|
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
|
|
|
SimpleDateFormat sdf2 = new SimpleDateFormat("yyyy-MM-dd"); |
|
|
|
//取今天日期,如果日期类型为String类型,可以使用df.parse()方法,转换为Date类型
|
|
|
|
Date date = new Date(); |
|
|
|
Calendar calendar = Calendar.getInstance();//new一个Calendar类,把Date放进去
|
|
|
|
calendar.setTime(date); |
|
|
|
calendar.add(Calendar.DATE, -1); |
|
|
|
Date time = calendar.getTime(); |
|
|
|
if (!useOrgSidList.isEmpty()) { |
|
|
|
for (String u : useOrgSidList) { |
|
|
|
List<LoanPlanDetailsVoForFundVoucher> fundVouchers = loanRepaymentPlanDetailsService.getFundForVoucher(u); |
|
|
@ -206,7 +211,7 @@ public class ScheduledRepaymentPlanDetailsService { |
|
|
|
} |
|
|
|
GeneralVoucher.GeneralVoucherDetail voucherDetail1 = new GeneralVoucher.GeneralVoucherDetail(); |
|
|
|
voucherDetail1.setSceneCode("贷方"); |
|
|
|
voucherDetail1.setDataTime(new Date()); |
|
|
|
voucherDetail1.setDataTime(time); |
|
|
|
voucherDetail1.setAmount(result); |
|
|
|
voucherDetail1.setTimeFlag("0"); |
|
|
|
List<SysOrganizationVo> deptVo = sysOrganizationFeign.selectChildrenListBySid(u).getData(); |
|
|
@ -226,7 +231,7 @@ public class ScheduledRepaymentPlanDetailsService { |
|
|
|
GeneralVoucher.GeneralVoucherDetail voucherDetail = new GeneralVoucher.GeneralVoucherDetail(); |
|
|
|
voucherDetail.setSceneCode("借方"); |
|
|
|
voucherDetail.setTimeFlag("0"); |
|
|
|
voucherDetail.setDataTime(new DateTime()); |
|
|
|
voucherDetail.setDataTime(time); |
|
|
|
String cwDeptCode = loanRepaymentPlanDetailsService.fetchCwDeptCodeByBusVinSid(v.getBusVinSid()); |
|
|
|
if (StringUtils.isNotBlank(cwDeptCode)) { |
|
|
|
voucherDetail.setDeptCode(cwDeptCode); |
|
|
|