From 13fd47c5aa585b74bfc8b77722bde3f7a2399587 Mon Sep 17 00:00:00 2001
From: zss <zss@example.com>
Date: 星期四, 21 五月 2026 10:26:42 +0800
Subject: [PATCH] refactor(invoice): 删除invoice_registration invoice_registration_product invoice_ledger invoice_ledger_file
---
src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java | 48 +++++++++++++++++++-----------------------------
1 files changed, 19 insertions(+), 29 deletions(-)
diff --git a/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java b/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
index 7d91849..24c0c8b 100644
--- a/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
+++ b/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
@@ -7,9 +7,8 @@
import com.ruoyi.framework.aspectj.lang.annotation.Log;
import com.ruoyi.framework.aspectj.lang.enums.BusinessType;
import com.ruoyi.framework.web.controller.BaseController;
-import com.ruoyi.framework.web.domain.R;
+import com.ruoyi.framework.web.domain.AjaxResult;
import com.ruoyi.framework.web.page.TableDataInfo;
-import com.ruoyi.sales.dto.InvoiceLedgerDto;
import com.ruoyi.sales.dto.ReceiptPaymentDto;
import com.ruoyi.sales.dto.ReceiptPaymentRecordDto;
import com.ruoyi.sales.pojo.ReceiptPayment;
@@ -39,9 +38,9 @@
* @return
*/
@PostMapping("/saveOrUpdate")
- public R<?> receiptPaymentSaveOrUpdate (@RequestBody List<ReceiptPayment> receiptPayment) {
+ public AjaxResult receiptPaymentSaveOrUpdate (@RequestBody List<ReceiptPayment> receiptPayment) {
receiptPaymentService.receiptPaymentSaveOrUpdate(receiptPayment);
- return R.ok();
+ return AjaxResult.success();
}
/**
@@ -51,8 +50,8 @@
*/
@PostMapping("/update")
@Transactional(rollbackFor = Exception.class)
- public R<?> receiptPaymentUpdate (@RequestBody ReceiptPayment receiptPayment) {
- return R.ok(receiptPaymentService.receiptPaymentUpdate(receiptPayment));
+ public AjaxResult receiptPaymentUpdate (@RequestBody ReceiptPayment receiptPayment) {
+ return AjaxResult.success(receiptPaymentService.receiptPaymentUpdate(receiptPayment));
}
/**
@@ -62,18 +61,18 @@
*/
@DeleteMapping("/del")
@Transactional(rollbackFor = Exception.class)
- public R<?> receiptPaymentDel (@RequestBody List<Integer> ids) {
- return R.ok(receiptPaymentService.receiptPaymentDel(ids));
+ public AjaxResult receiptPaymentDel (@RequestBody List<Integer> ids) {
+ return AjaxResult.success(receiptPaymentService.receiptPaymentDel(ids));
}
/**
* 瀹㈡埛寰�鏉ヨ褰曟煡璇�
- * @param receiptPaymentDto
+ * @param
* @return
*/
@GetMapping("/customerInteractions")
- public R<?> customerInteractions (InvoiceLedgerDto receiptPaymentDto) {
- return R.ok(receiptPaymentService.customerInteractions(receiptPaymentDto));
+ public AjaxResult customerInteractions () {
+ return AjaxResult.success();
}
/**
@@ -82,20 +81,20 @@
* @return
*/
@GetMapping("/info")
- public R<?> receiptPaymentInfo (Integer id) {
- return R.ok(receiptPaymentService.receiptPaymentInfo(id));
+ public AjaxResult receiptPaymentInfo (Integer id) {
+ return AjaxResult.success(receiptPaymentService.receiptPaymentInfo(id));
}
/**
* 鏈湀鍥炴閲戦
*/
@GetMapping("/getReceiptAmount")
- public R<?> getReceiptAmount() {
+ public AjaxResult getReceiptAmount() {
try {
BigDecimal receiptAmount = receiptPaymentService.getReceiptAmount();
- return R.ok(receiptAmount != null ? receiptAmount : BigDecimal.ZERO);
+ return AjaxResult.success(receiptAmount != null ? receiptAmount : BigDecimal.ZERO);
} catch (Exception e) {
- return R.fail("鑾峰彇鍥炴閲戦澶辫触锛�" + e.getMessage());
+ return AjaxResult.error("鑾峰彇鍥炴閲戦澶辫触锛�" + e.getMessage());
}
}
@@ -106,8 +105,8 @@
* @return
*/
@GetMapping("/bindInvoiceNoRegPage")
- public R<?> bindInvoiceNoRegPage(Page page, ReceiptPaymentDto receiptPaymentDto) {
- return R.ok(receiptPaymentService.bindInvoiceNoRegPage(page,receiptPaymentDto));
+ public AjaxResult bindInvoiceNoRegPage(Page page, ReceiptPaymentDto receiptPaymentDto) {
+ return AjaxResult.success(receiptPaymentService.bindInvoiceNoRegPage(page,receiptPaymentDto));
}
@Schema(description = "瀵煎嚭鍥炴鐧昏")
@@ -125,22 +124,13 @@
}
- /**
- * 寮�绁ㄥ彴璐﹁鎯�
- * @param id
- * @return
- */
- @GetMapping("/invoiceInfo")
- public R<?> invoiceInfo (Integer id) {
- return R.ok(receiptPaymentService.invoiceInfo(id));
- }
/**
* 鏈湀搴旀敹,鍥炴閲戦
*/
@GetMapping("/getAmountMouth")
- public R<?> getAmountMouth() {
- return R.ok(receiptPaymentService.getAmountMouth());
+ public AjaxResult getAmountMouth() {
+ return AjaxResult.success(receiptPaymentService.getAmountMouth());
}
/**
--
Gitblit v1.9.3