From 0e420d68f407fde240709ac1800da20b0bb99490 Mon Sep 17 00:00:00 2001
From: liding <756868258@qq.com>
Date: 星期二, 09 六月 2026 16:06:16 +0800
Subject: [PATCH] feat:反审核操作。可以对已审核的订单进行反审核,反审核的时候可以选择作废还是重新生成一条,并记录反审核描述。选择作废的话则不生成新增订单。选择重新生成的话则跳转到新增台账页面对反审核的销售产品进行编辑保存重新生成一条新增的订单。反审核的订单即使是发货了还是可以反审核,并且需要将对应的入库、出库、发货进行作废。

---
 src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java b/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
index 9bce200..aa10b54 100644
--- a/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
+++ b/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
@@ -19,6 +19,7 @@
 import com.ruoyi.sales.service.ReceiptPaymentService;
 import io.swagger.annotations.ApiModelProperty;
 import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.web.bind.annotation.*;
 
 import javax.servlet.http.HttpServletResponse;
@@ -52,6 +53,7 @@
      * @return
      */
     @PostMapping("/update")
+    @Transactional(rollbackFor = Exception.class)
     public AjaxResult receiptPaymentUpdate (@RequestBody ReceiptPayment receiptPayment) {
         return AjaxResult.success(receiptPaymentService.receiptPaymentUpdate(receiptPayment));
     }
@@ -62,6 +64,7 @@
      * @return
      */
     @DeleteMapping("/del")
+    @Transactional(rollbackFor = Exception.class)
     public AjaxResult receiptPaymentDel (@RequestBody List<Integer> ids) {
         return AjaxResult.success(receiptPaymentService.receiptPaymentDel(ids));
     }

--
Gitblit v1.9.3