From e9017dc3ca3197ed73cbf601a39b41f54e17a175 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期一, 31 八月 2026 10:46:34 +0800
Subject: [PATCH] 修改因越权修改导致的部分接口调用受阻

---
 ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/ChargingBillController.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/ChargingBillController.java b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/ChargingBillController.java
index 4c0eb59..9f607e3 100644
--- a/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/ChargingBillController.java
+++ b/ruoyi-service/ruoyi-order/src/main/java/com/ruoyi/order/controller/ChargingBillController.java
@@ -93,6 +93,23 @@
     }
 
 
+    @PostMapping(value = "/accountBillList1")
+    public R<AccountListVO> accountBillList1(@RequestBody ChargingListQuery dto) {
+        AccountListVO accountListVO = new AccountListVO();
+        ChargingBillVO res = chargingBillService.chargingBillList1(dto);
+        List<ChargingBillListVO> records = res.getList().getRecords();
+        accountListVO.setBillCount(records.size());
+        accountListVO.setTotalAmount(res.getPaymentAmount().subtract(res.getCommissionAmount()).subtract(res.getSharingAmount()).setScale(2, BigDecimal.ROUND_DOWN));
+        accountListVO.setPaymentAmount(res.getPaymentAmount().setScale(2, BigDecimal.ROUND_DOWN));
+        accountListVO.setRefundAmount(res.getRefundAmount().setScale(2, BigDecimal.ROUND_DOWN));
+        accountListVO.setCommissionAmount(res.getCommissionAmount().setScale(2, BigDecimal.ROUND_DOWN));
+        accountListVO.setSharingAmount(res.getSharingAmount().setScale(2, BigDecimal.ROUND_DOWN));
+        accountListVO.setList(res.getList());
+        accountListVO.setOrderList(res.getExportList());
+        return R.ok(accountListVO);
+    }
+
+
     
     @RequiresPermissions(value = {"/chargeBill"}, logical = Logical.OR)
     @PostMapping(value = "/chargingBillList")

--
Gitblit v1.7.1