From 5c3154277d1f6d94d511cb7fd70e7b88ab318a99 Mon Sep 17 00:00:00 2001
From: wujianwei <wjw@11.com>
Date: 星期三, 07 一月 2026 17:00:39 +0800
Subject: [PATCH] 新增开票接口

---
 service/src/main/java/com/ruoyi/cwgl/controller/PayableFeeManagementController.java |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/service/src/main/java/com/ruoyi/cwgl/controller/PayableFeeManagementController.java b/service/src/main/java/com/ruoyi/cwgl/controller/PayableFeeManagementController.java
index 4b697a7..5da9159 100644
--- a/service/src/main/java/com/ruoyi/cwgl/controller/PayableFeeManagementController.java
+++ b/service/src/main/java/com/ruoyi/cwgl/controller/PayableFeeManagementController.java
@@ -18,6 +18,8 @@
 import com.ruoyi.common.enums.BusinessType;
 import com.ruoyi.cwgl.domain.PayableFeeManagement;
 import com.ruoyi.cwgl.service.IPayableFeeManagementService;
+import com.ruoyi.cwgl.domain.vo.PayableFeeStatisticsVo;
+import com.ruoyi.cwgl.domain.vo.PayableBillCreateVo;
 import com.ruoyi.common.utils.poi.ExcelUtil;
 import com.ruoyi.common.core.page.TableDataInfo;
 
@@ -105,4 +107,37 @@
     {
         return toAjax(payableFeeManagementService.deletePayableFeeManagementByIds(ids));
     }
+
+    /**
+     * 鏌ヨ搴斾粯璐圭敤缁熻淇℃伅
+     */
+    @PreAuthorize("@ss.hasPermi('cwgl:payableFeeManagement:query')")
+    @GetMapping("/getStatistics/{ids}")
+    public AjaxResult getStatistics(@PathVariable Integer[] ids)
+    {
+        PayableFeeStatisticsVo statisticsVo = payableFeeManagementService.getPayableFeeStatistics(ids);
+        return AjaxResult.success(statisticsVo);
+    }
+
+    /**
+     * 鍒涘缓搴斾粯璐﹀崟
+     */
+    @PreAuthorize("@ss.hasPermi('cwgl:payableFeeManagement:edit')")
+    @Log(title = "搴斾粯璐圭敤绠$悊", businessType = BusinessType.UPDATE)
+    @PostMapping("/createBill")
+    public AjaxResult createBill(@RequestBody PayableBillCreateVo billCreateVo)
+    {
+        return toAjax(payableFeeManagementService.createPayableBill(billCreateVo));
+    }
+
+    /**
+     * 浣滃簾搴斾粯璐圭敤绠$悊璁板綍
+     */
+    @PreAuthorize("@ss.hasPermi('cwgl:payableFeeManagement:void')")
+    @Log(title = "搴斾粯璐圭敤绠$悊", businessType = BusinessType.UPDATE)
+    @PutMapping("/void/{id}")
+    public AjaxResult voidPayableFee(@PathVariable("id") Integer id)
+    {
+        return toAjax(payableFeeManagementService.voidPayableFeeManagement(id));
+    }
 }

--
Gitblit v1.8.0