From ae1471f378f399f76518539ec8992e64a3673436 Mon Sep 17 00:00:00 2001
From: 陶杰 <1378534974@qq.com>
Date: 星期三, 08 一月 2025 15:26:06 +0800
Subject: [PATCH] 1.订单提交:订单最小金额配置

---
 src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java b/src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java
index 48cf2cf..4c6d264 100644
--- a/src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java
+++ b/src/main/java/com/mzl/flower/web/flower/FlowerMarkupPsController.java
@@ -33,9 +33,12 @@
     private FlowerMarkupPsService psService;
 
     @PostMapping("/list/new")
+    @OperationLog(value = "新增合伙人配置", type = "markup_s_p")
     @ApiOperation(value = "新增合伙人配置")
     public ResponseEntity<ReturnDataDTO> saveMarkupPs(@RequestBody FlowerMarkupPsSaveDTO dto) {
-        return returnData(R.SUCCESS.getCode(), psService.saveMarkupPs(dto));
+        String content = "新增合伙人配置:合伙人id:【" + dto.getPartnerId() + "】";
+        OperationRecord operationRecord = getOperationRecord(content);
+        return returnData(R.SUCCESS.getCode(), psService.saveMarkupPs(dto), operationRecord);
     }
 
     @GetMapping("/list")
@@ -45,13 +48,16 @@
     }
 
     @GetMapping("/list/delete")
+    @OperationLog(value = "删除合伙人配置", type = "markup_s_p")
     @ApiOperation(value = "删除合伙人配置")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "id", value = "id", required = true, dataType = "String", paramType = "query")
     })
     public ResponseEntity<ReturnDataDTO<?>> deleteMarkupPs(Long id){
         psService.deleteMarkupPs(id);
-        return returnData(R.SUCCESS.getCode(), null);
+        String content = "删除合伙人配置id:【" + id+ "】";
+        OperationRecord operationRecord = getOperationRecord(content);
+        return returnData(R.SUCCESS.getCode(), null, operationRecord);
     }
 
     @PostMapping("/spcg/list/save/batch")
@@ -127,6 +133,7 @@
     }
 
     @GetMapping("/sp/list/delete")
+    @OperationLog(value = "删除商品加价", type = "markup_s_p")
     @ApiOperation(value = "删除商品加价")
     @ApiImplicitParams({
             @ApiImplicitParam(name = "partnerId", value = "合伙人id", required = true, dataType = "Long", paramType = "query"),
@@ -134,6 +141,8 @@
     })
     public ResponseEntity<ReturnDataDTO<?>> deleteMarkupSp(Long partnerId, Long flowerId){
         psService.deleteMarkupSp(partnerId, flowerId);
-        return returnData(R.SUCCESS.getCode(), null);
+        String content = "删除商品加价:合伙人id:【" + partnerId + "】,商品id:【"+flowerId+"】";
+        OperationRecord operationRecord = getOperationRecord(content);
+        return returnData(R.SUCCESS.getCode(), null,operationRecord);
     }
 }

--
Gitblit v1.9.3