| | |
| | | // DTO赋值 |
| | | contractPaymentDto.setContractInvoiceIds(contractInvoiceIds); |
| | | // 查询合同数据 |
| | | ContractDto contractDto = contractServiceImpl.findById(t.getContractId()); |
| | | Contract contract = contractRepository.findById(t.getContractId()).orElseGet(Contract::new); |
| | | // DTO赋值 |
| | | contractPaymentDto.setContractName(contractDto.getContractName()); |
| | | contractPaymentDto.setContractName(contract.getContractName()); |
| | | // 返回处理好的DTO |
| | | return contractPaymentDto; |
| | | } |
| | |
| | | String fundBelongEnd = sdf.format(contractPayment.getFundBelongEnd()); |
| | | fundBelong = fundBelongStart.substring(0, 10) + " 至 " + fundBelongEnd.substring(0, 10) + " 服务费"; |
| | | } |
| | | ContractDto contractDto = contractServiceImpl.findById(contractPayment.getContractId()); |
| | | Contract contract = contractRepository.findById(contractPayment.getContractId()).orElseGet(Contract::new); |
| | | Map<String,Object> map = new LinkedHashMap<>(); |
| | | map.put("所属合同", contractDto.getContractName()); |
| | | map.put("所属合同", contract.getContractName()); |
| | | map.put("付款时间", contractPayment.getPaymentTime()); |
| | | map.put("款项类型", fundType); |
| | | map.put("付款金额", contractPayment.getPaymentAmount()); |