| | |
| | | ChargingBillVO res1 = chargingBillService.chargingBillList1(dto); |
| | | List<ChargingBillListVO> records = res1.getList().getRecords(); |
| | | accountListVO.setBillCount(records.size()); |
| | | accountListVO.setTotalAmount(res1.getPaymentAmount().subtract(res1.getRefundAmount()).subtract(res1.getCommissionAmount()).subtract(res1.getSharingAmount())); |
| | | accountListVO.setTotalAmount( |
| | | res1.getPaymentAmount().subtract(res1.getRefundAmount()==null?BigDecimal.ZERO:res1.getRefundAmount()) |
| | | .subtract(res1.getCommissionAmount()==null?BigDecimal.ZERO:res1.getCommissionAmount()) |
| | | .subtract(res1.getSharingAmount()==null?BigDecimal.ZERO:res1.getSharingAmount())); |
| | | accountListVO.setPaymentAmount(res1.getPaymentAmount()); |
| | | accountListVO.setRefundAmount(res1.getRefundAmount()); |
| | | accountListVO.setCommissionAmount(res1.getCommissionAmount()); |
| | |
| | | } |
| | | } |
| | | @ApiOperation(value = "导出", tags = {"管理后台-账户结算账单"}) |
| | | @PostMapping("/exportAccount") |
| | | @PutMapping("/exportAccount") |
| | | public void exportAccount(@RequestBody ChargingListQuery dto) |
| | | { |
| | | ChargingBillVO res = chargingBillService.chargingBillList1(dto); |
| | |
| | | for (ChargingBillListVO orderInvoiceVO : list) { |
| | | TChargingBillExport tChargingBillExport = new TChargingBillExport(); |
| | | tChargingBillExport.setCode(orderInvoiceVO.getCode()); |
| | | switch (orderInvoiceVO.getTimeType()){ |
| | | switch (orderInvoiceVO.getOrderState()){ |
| | | case 1: |
| | | tChargingBillExport.setBillType("日账单"); |
| | | break; |