|
|
@ -206,10 +206,11 @@ public class LoanRepaymentPlanDetailsService extends MybatisBaseService<LoanRepa |
|
|
|
|
|
|
|
public ResultBean pushFund(String sid) { |
|
|
|
ResultBean rb = ResultBean.fireFail(); |
|
|
|
LoanPlanDetailsVoForFundVoucher v = baseMapper.pushFund(sid); |
|
|
|
LoanRepaymentPlanDetails planDetails = fetchBySid(sid); |
|
|
|
if (null != planDetails) { |
|
|
|
LoanPlanDetailsVoForFundVoucher v = baseMapper.pushFund(planDetails.getBusVinSid()); |
|
|
|
if (null != v) { |
|
|
|
List<LoanPushFundHistory> fundHistoryList = new ArrayList<>(); |
|
|
|
LoanRepaymentPlanDetails planDetails = fetchBySid(sid); |
|
|
|
GeneralVoucher generalVoucher = new GeneralVoucher(); |
|
|
|
List<GeneralVoucher.GeneralVoucherDetail> voucherDetails = new ArrayList<>(); |
|
|
|
SysOrganizationVo organizationVo = sysOrganizationFeign.fetchBySid(planDetails.getUseOrgSid()).getData(); |
|
|
@ -286,10 +287,12 @@ public class LoanRepaymentPlanDetailsService extends MybatisBaseService<LoanRepa |
|
|
|
voucherDetails.add(voucherDetail); |
|
|
|
} |
|
|
|
LoanPushFundHistory loanPushFundHistory = new LoanPushFundHistory(); |
|
|
|
BeanUtil.copyProperties(v, loanPushFundHistory, "id", "sid", "fund"); |
|
|
|
if (null != v.getDuePushMoney()) { |
|
|
|
loanPushFundHistory.setFund(v.getDuePushMoney()); |
|
|
|
} |
|
|
|
loanPushFundHistory.setBusVinSid(planDetails.getBusVinSid()); |
|
|
|
loanPushFundHistory.setUseOrgName(planDetails.getUseOrgName()); |
|
|
|
loanPushFundHistory.setUseOrgSid(planDetails.getUseOrgSid()); |
|
|
|
fundHistoryList.add(loanPushFundHistory); |
|
|
|
generalVoucher.setVoucherDetails(voucherDetails); |
|
|
|
finKingDeeFeign.saveFundVoucher(generalVoucher); |
|
|
@ -298,6 +301,8 @@ public class LoanRepaymentPlanDetailsService extends MybatisBaseService<LoanRepa |
|
|
|
loanPushFundHistoryService.saveLists(fundHistoryList); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
return rb.success(); |
|
|
|
} |
|
|
|
|
|
|
|