From 3c5072913efbda0c2341cac904a55383ad82f8c8 Mon Sep 17 00:00:00 2001
From: chenrui <1187576398@qq.com>
Date: 星期二, 13 五月 2025 15:41:37 +0800
Subject: [PATCH] 开票台账前后端联调
---
src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java | 29 ++++++++++++++---------------
1 files changed, 14 insertions(+), 15 deletions(-)
diff --git a/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java b/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java
index 6fd4449..a42414b 100644
--- a/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java
+++ b/src/main/java/com/ruoyi/sales/controller/InvoiceLedgerController.java
@@ -23,9 +23,9 @@
* @param invoiceLedgerDto
* @return
*/
- @PostMapping("/add")
- public AjaxResult invoiceLedgerAdd(@RequestBody InvoiceLedgerDto invoiceLedgerDto) {
- invoiceLedgerService.invoiceLedgerAdd(invoiceLedgerDto);
+ @PostMapping("/saveOrUpdate")
+ public AjaxResult invoiceLedgerSaveOrUpdate(@RequestBody InvoiceLedgerDto invoiceLedgerDto) {
+ invoiceLedgerService.invoiceLedgerSaveOrUpdate(invoiceLedgerDto);
return AjaxResult.success();
}
@@ -35,19 +35,8 @@
* @return
*/
@DeleteMapping("/del")
- public AjaxResult invoiceLedgerDel(@RequestParam List<Integer> ids) {
+ public AjaxResult invoiceLedgerDel(@RequestBody List<Integer> ids) {
invoiceLedgerService.invoiceLedgerDel(ids);
- return AjaxResult.success();
- }
-
- /**
- * 寮�绁ㄥ彴璐︿慨鏀�
- * @param invoiceLedgerDto
- * @return
- */
- @PostMapping("/update")
- public AjaxResult invoiceLedgerUpdate(@RequestBody InvoiceLedgerDto invoiceLedgerDto) {
- invoiceLedgerService.invoiceLedgerUpdate(invoiceLedgerDto);
return AjaxResult.success();
}
@@ -97,4 +86,14 @@
invoiceLedgerService.invoiceLedgerDownload(response, invoiceLedgerDto);
}
+ /**
+ * 寮�绁ㄥ彴璐﹁鎯�
+ * @param id
+ * @return
+ */
+ @GetMapping("/info")
+ public AjaxResult invoiceLedgerInfo(Integer id) {
+ return AjaxResult.success(invoiceLedgerService.invoiceLedgerDetail(id));
+ }
+
}
--
Gitblit v1.9.3