|
|
@ -731,42 +731,43 @@ public class FinPaymentapplyService extends MybatisBaseService<FinPaymentapplyMa |
|
|
|
//本次付款说明
|
|
|
|
finPaymentrecordDto.setPayRemark(finPaymentapply.getPayCompany() + "/" + finPaymentapplyDetailsBelowDetailsVo.getRemarks()); |
|
|
|
finPaymentrecordService.saveDto(finPaymentrecordDto); |
|
|
|
List<FinPaymentapplyDetailsBelowEveDetailsVo> finPaymentapplyDetailsBelowEveList = finPaymentapplyDetailsBelowEveService.selByMainSid(finPaymentapplyDetailsBelowDetailsVo.getSid()); |
|
|
|
if (finPaymentapplyDetailsBelowEveList != null){ |
|
|
|
for (FinPaymentapplyDetailsBelowEveDetailsVo finPaymentapplyDetailsBelowEveDetailsVo : finPaymentapplyDetailsBelowEveList) { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
List<FinPaymentapplyEveDetailsVo> eveList = vo.getEveList(); |
|
|
|
eveList.removeAll(Collections.singleton(null)); |
|
|
|
if (!eveList.isEmpty()) { |
|
|
|
for (FinPaymentapplyEveDetailsVo finPaymentapplyEveDetailsVo : eveList) { |
|
|
|
finPaymentrecordDto.setFinDataType(1); |
|
|
|
//款项名称
|
|
|
|
finPaymentrecordDto.setCostTypeKey(""); |
|
|
|
finPaymentrecordDto.setCostTypeValue(finPaymentapplyDetailsBelowEveDetailsVo.getCostTitleValue()); |
|
|
|
finPaymentrecordDto.setCostTypeValue("融资付款"); |
|
|
|
//款项详情
|
|
|
|
finPaymentrecordDto.setCostTitleKey(""); |
|
|
|
finPaymentrecordDto.setCostTitleValue(finPaymentapplyDetailsBelowEveDetailsVo.getCostTitleValue()); |
|
|
|
finPaymentrecordDto.setCostTitleValue(finPaymentapplyEveDetailsVo.getCostTitleValue()); |
|
|
|
//付款方式
|
|
|
|
finPaymentrecordDto.setPayWayKey(finPaymentapplyDetailsBelowDetailsVo.getPaymentTypeKey()); |
|
|
|
finPaymentrecordDto.setPayWayValue(finPaymentapplyDetailsBelowDetailsVo.getPaymentType()); |
|
|
|
finPaymentrecordDto.setPayWayKey(finPaymentapplyEveDetailsVo.getPayWayKey()); |
|
|
|
finPaymentrecordDto.setPayWayValue(finPaymentapplyEveDetailsVo.getPayWayValue()); |
|
|
|
//是否推送回款返利
|
|
|
|
finPaymentrecordDto.setIsPushHkfl(0); |
|
|
|
finPaymentrecordDto.setBusSid(finPaymentapplyDetailsBelowEveDetailsVo.getSid()); |
|
|
|
finPaymentrecordDto.setBusSid(finPaymentapplyEveDetailsVo.getSid()); |
|
|
|
//收款银行账号
|
|
|
|
finPaymentrecordDto.setReceiveBankAccount(finPaymentapplyDetailsBelowEveDetailsVo.getReceivingAccount()); |
|
|
|
finPaymentrecordDto.setReceiveBank(finPaymentapplyDetailsBelowEveDetailsVo.getBank()); |
|
|
|
finPaymentrecordDto.setReceiveBankAccount(finPaymentapplyEveDetailsVo.getReceivingAccount()); |
|
|
|
finPaymentrecordDto.setReceiveBank(finPaymentapplyEveDetailsVo.getBank()); |
|
|
|
//收款单位名称
|
|
|
|
finPaymentrecordDto.setReceiveCompany(finPaymentapplyDetailsBelowEveDetailsVo.getReceiveCompany()); |
|
|
|
finPaymentrecordDto.setReceiveCompany(finPaymentapplyEveDetailsVo.getReceiveCompany()); |
|
|
|
//金额
|
|
|
|
if (finPaymentapplyDetailsBelowEveDetailsVo.getExePayPrice() != null) { |
|
|
|
finPaymentrecordDto.setCost(finPaymentapplyDetailsBelowEveDetailsVo.getExePayPrice().toString()); |
|
|
|
finPaymentrecordDto.setAccountsReceive(finPaymentapplyDetailsBelowEveDetailsVo.getExePayPrice().toString()); |
|
|
|
if (finPaymentapplyEveDetailsVo.getExePayPrice() != null) { |
|
|
|
finPaymentrecordDto.setCost(finPaymentapplyEveDetailsVo.getExePayPrice().toString()); |
|
|
|
finPaymentrecordDto.setAccountsReceive(finPaymentapplyEveDetailsVo.getExePayPrice().toString()); |
|
|
|
} |
|
|
|
//备注
|
|
|
|
finPaymentrecordDto.setRemarks(finPaymentrecordDto.getCostTypeValue() + finPaymentrecordDto.getCostTitleValue()); |
|
|
|
//本次付款说明
|
|
|
|
finPaymentrecordDto.setPayRemark(finPaymentapply.getPayCompany() + "/" + finPaymentapplyDetailsBelowEveDetailsVo.getRemarks()); |
|
|
|
finPaymentrecordDto.setPayRemark(finPaymentapply.getPayCompany() + "/" + finPaymentapplyEveDetailsVo.getRemarks()); |
|
|
|
finPaymentrecordService.saveDto(finPaymentrecordDto); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
List<FinPaymentapplyVehicleVo> vehicleList = vo.getVehicleList(); |
|
|
|
if (vehicleList.size() > 0) { |
|
|
|
for (FinPaymentapplyVehicleVo finPaymentapplyVehicleVo : vehicleList) { |
|
|
|