From 6c823dd44dbde79f008001a2a11e7bf9bc6bf8cc Mon Sep 17 00:00:00 2001
From: cloudroam <cloudroam>
Date: 星期三, 04 十二月 2024 18:15:44 +0800
Subject: [PATCH] fix:合伙人列表操作日志
---
src/main/java/com/mzl/flower/web/partner/FlowerMarkupSpController.java | 15 +++++++++------
1 files changed, 9 insertions(+), 6 deletions(-)
diff --git a/src/main/java/com/mzl/flower/web/partner/FlowerMarkupSpController.java b/src/main/java/com/mzl/flower/web/partner/FlowerMarkupSpController.java
index 88cfaff..da846f4 100644
--- a/src/main/java/com/mzl/flower/web/partner/FlowerMarkupSpController.java
+++ b/src/main/java/com/mzl/flower/web/partner/FlowerMarkupSpController.java
@@ -22,6 +22,9 @@
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;
+import javax.servlet.http.HttpServletRequest;
+import java.io.IOException;
+
@RestController
@RequestMapping("/api/flower/markup/sp")
@Api(value = "合伙人商品加价管理", tags = "合伙人商品加价管理")
@@ -34,23 +37,23 @@
@PostMapping("/list/save")
@ApiOperation(value = "新增商品加价")
- public ResponseEntity<ReturnDataDTO> saveMarkupSp(@RequestBody FlowerMarkupSpSaveDTO dto) {
+ public ResponseEntity<ReturnDataDTO> saveMarkupSp(@RequestBody FlowerMarkupSpSaveDTO dto, HttpServletRequest request) throws IOException {
Partner s = spService.getCurrentPartner();
if(s == null){
throw new ValidationException("未找到当前合伙人信息");
}
dto.setPartnerId(s.getId());
- spService.saveMarkupSp(dto);
+ spService.saveMarkupSp(dto,request);
return returnData(R.SUCCESS.getCode(), null);
}
@PostMapping("/list/save/platform")
@ApiOperation(value = "运营平台新增商品加价")
- public ResponseEntity<ReturnDataDTO> saveMarkupSpPlatform(@RequestBody FlowerMarkupSpSaveDTO dto) {
+ public ResponseEntity<ReturnDataDTO> saveMarkupSpPlatform(@RequestBody FlowerMarkupSpSaveDTO dto,HttpServletRequest request) throws IOException {
if(dto.getPartnerId()== null || dto.getPartnerId() == 0){
throw new ValidationException("合伙人id不能为空");
}
- spService.saveMarkupSp(dto);
+ spService.saveMarkupSp(dto,request);
return returnData(R.SUCCESS.getCode(), null);
}
@@ -110,13 +113,13 @@
@PostMapping("/flower/list/save")
@ApiOperation(value = "批量新增商品加价")
- public ResponseEntity<ReturnDataDTO> saveMarkupSpBatch(@RequestBody FlowerMarkupSpSaveBatchDTO dto) {
+ public ResponseEntity<ReturnDataDTO> saveMarkupSpBatch(@RequestBody FlowerMarkupSpSaveBatchDTO dto,HttpServletRequest request) throws IOException {
Partner s = spService.getCurrentPartner();
if(s == null){
throw new ValidationException("未找到当前合伙人信息");
}
dto.setPartnerId(s.getId());
- spService.saveMarkupSpBatch(dto);
+ spService.saveMarkupSpBatch(dto,request);
return returnData(R.SUCCESS.getCode(), null);
}
}
--
Gitblit v1.9.3