| | |
| | | * @return |
| | | */ |
| | | @PostMapping("/saveOrUpdate") |
| | | public AjaxResult receiptPaymentSaveOrUpdate (@RequestBody ReceiptPayment receiptPayment) { |
| | | public AjaxResult receiptPaymentSaveOrUpdate (@RequestBody List<ReceiptPayment> receiptPayment) { |
| | | receiptPaymentService.receiptPaymentSaveOrUpdate(receiptPayment); |
| | | return AjaxResult.success(); |
| | | } |
| | |
| | | List<ReceiptPaymentRecordDto> receiptPaymentRecordDtos = new ArrayList<>(); |
| | | salesLedgerIPage.getRecords().forEach(receiptPaymentRecordDto -> { |
| | | ReceiptPaymentRecordDto receiptPaymentRecordDto1 = new ReceiptPaymentRecordDto(); |
| | | BeanUtils.copyBeanProp(receiptPaymentRecordDto, receiptPaymentRecordDto1); |
| | | BeanUtils.copyProperties(receiptPaymentRecordDto, receiptPaymentRecordDto1); |
| | | receiptPaymentRecordDtos.add(receiptPaymentRecordDto1); |
| | | }); |
| | | util.exportExcel(response, receiptPaymentRecordDtos, "导出开票登记列表"); |