From d2038a623e02c2d7bb6b95a908832c0432adf2f0 Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期四, 21 五月 2026 13:46:21 +0800
Subject: [PATCH] 增加日志

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

diff --git a/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java b/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
index 0801107..1e851ed 100644
--- a/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
+++ b/src/main/java/com/ruoyi/sales/controller/ReceiptPaymentController.java
@@ -10,6 +10,7 @@
 import com.ruoyi.framework.web.domain.AjaxResult;
 import com.ruoyi.framework.web.page.TableDataInfo;
 import com.ruoyi.purchase.dto.InvoicePurchaseDto;
+import com.ruoyi.sales.dto.InvoiceLedgerDto;
 import com.ruoyi.sales.dto.ReceiptPaymentDto;
 import com.ruoyi.sales.dto.ReceiptPaymentRecordDto;
 import com.ruoyi.sales.dto.SalesLedgerDto;
@@ -18,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;
@@ -40,7 +42,8 @@
      * @return
      */
     @PostMapping("/saveOrUpdate")
-    public AjaxResult receiptPaymentSaveOrUpdate (@RequestBody ReceiptPayment receiptPayment) {
+    @Log(title = "鏂板鍥炴鐧昏", businessType = BusinessType.INSERT)
+    public AjaxResult receiptPaymentSaveOrUpdate (@RequestBody List<ReceiptPayment> receiptPayment) {
         receiptPaymentService.receiptPaymentSaveOrUpdate(receiptPayment);
         return AjaxResult.success();
     }
@@ -51,6 +54,8 @@
      * @return
      */
     @PostMapping("/update")
+    @Log(title = "淇敼鍥炴鐧昏", businessType = BusinessType.UPDATE)
+    @Transactional(rollbackFor = Exception.class)
     public AjaxResult receiptPaymentUpdate (@RequestBody ReceiptPayment receiptPayment) {
         return AjaxResult.success(receiptPaymentService.receiptPaymentUpdate(receiptPayment));
     }
@@ -61,6 +66,8 @@
      * @return
      */
     @DeleteMapping("/del")
+    @Log(title = "鍒犻櫎鍥炴鐧昏", businessType = BusinessType.DELETE)
+    @Transactional(rollbackFor = Exception.class)
     public AjaxResult receiptPaymentDel (@RequestBody List<Integer> ids) {
         return AjaxResult.success(receiptPaymentService.receiptPaymentDel(ids));
     }
@@ -71,7 +78,8 @@
      * @return
      */
     @GetMapping("/customerInteractions")
-    public AjaxResult customerInteractions (ReceiptPaymentDto receiptPaymentDto) {
+    @Log(title = "鏌ヨ瀹㈡埛寰�鏉ヨ褰�", businessType = BusinessType.OTHER)
+    public AjaxResult customerInteractions (InvoiceLedgerDto receiptPaymentDto) {
         return AjaxResult.success(receiptPaymentService.customerInteractions(receiptPaymentDto));
     }
 
@@ -81,6 +89,7 @@
      * @return
      */
     @GetMapping("/info")
+    @Log(title = "鏌ヨ鍥炴鐧昏璇︽儏", businessType = BusinessType.OTHER)
     public AjaxResult receiptPaymentInfo (Integer id) {
         return AjaxResult.success(receiptPaymentService.receiptPaymentInfo(id));
     }
@@ -89,6 +98,7 @@
      * 鏈湀鍥炴閲戦
      */
     @GetMapping("/getReceiptAmount")
+    @Log(title = "鏌ヨ鏈湀鍥炴閲戦", businessType = BusinessType.OTHER)
     public AjaxResult getReceiptAmount() {
         try {
             BigDecimal receiptAmount = receiptPaymentService.getReceiptAmount();
@@ -105,12 +115,14 @@
      * @return
      */
     @GetMapping("/bindInvoiceNoRegPage")
+    @Log(title = "鏌ヨ宸茬粡缁戝畾鍙戠エ鐨勫紑绁ㄥ彴璐�", businessType = BusinessType.OTHER)
     public AjaxResult bindInvoiceNoRegPage(Page page, ReceiptPaymentDto receiptPaymentDto) {
         return AjaxResult.success(receiptPaymentService.bindInvoiceNoRegPage(page,receiptPaymentDto));
     }
 
     @ApiModelProperty("瀵煎嚭鍥炴鐧昏")
     @PostMapping("/export")
+    @Log(title = "瀵煎嚭鍥炴鐧昏", businessType = BusinessType.EXPORT)
     public void export(HttpServletResponse response, String ids) {
         if (ids == null || ids.isEmpty()) {
             receiptPaymentService.exportPaymentList(response, null);
@@ -130,6 +142,7 @@
      * @return
      */
     @GetMapping("/invoiceInfo")
+    @Log(title = "鏌ヨ寮�绁ㄥ彴璐﹁鎯�", businessType = BusinessType.OTHER)
     public AjaxResult invoiceInfo (Integer id) {
         return AjaxResult.success(receiptPaymentService.invoiceInfo(id));
     }
@@ -138,6 +151,7 @@
      * 鏈湀搴旀敹,鍥炴閲戦
      */
     @GetMapping("/getAmountMouth")
+    @Log(title = "鏌ヨ鏈湀搴旀敹,鍥炴閲戦", businessType = BusinessType.OTHER)
     public AjaxResult getAmountMouth() {
         return  AjaxResult.success(receiptPaymentService.getAmountMouth());
     }
@@ -145,6 +159,7 @@
     /**
      * 鏌ヨ鍥炴璁板綍
      */
+    @Log(title = "鏌ヨ鍥炴璁板綍", businessType = BusinessType.OTHER)
     @GetMapping("/receiptPaymentHistoryList")
     public TableDataInfo receiptPaymentHistoryList(ReceiptPaymentDto receiptPaymentDto) {
         startPage();
@@ -156,6 +171,7 @@
      * 鏌ヨ鍥炴璁板綍
      */
     @GetMapping("/receiptPaymentHistoryListPage")
+    @Log(title = "鏌ヨ鍥炴璁板綍", businessType = BusinessType.OTHER)
     public IPage<ReceiptPaymentDto> receiptPaymentHistoryListPage(Page page, ReceiptPaymentDto receiptPaymentDto) {
         return receiptPaymentService.receiptPaymentHistoryListPage(page,receiptPaymentDto);
     }
@@ -174,7 +190,7 @@
         List<ReceiptPaymentRecordDto> receiptPaymentRecordDtos = new ArrayList<>();
         salesLedgerIPage.getRecords().forEach(receiptPaymentRecordDto -> {
             ReceiptPaymentRecordDto receiptPaymentRecordDto1 = new ReceiptPaymentRecordDto();
-            BeanUtils.copyBeanProp(receiptPaymentRecordDto, receiptPaymentRecordDto1);
+            BeanUtils.copyProperties(receiptPaymentRecordDto, receiptPaymentRecordDto1);
             receiptPaymentRecordDtos.add(receiptPaymentRecordDto1);
         });
         util.exportExcel(response, receiptPaymentRecordDtos, "瀵煎嚭寮�绁ㄧ櫥璁板垪琛�");

--
Gitblit v1.9.3