From 6a18d6cffcb67e361db8345a4323d5782d1fe32a Mon Sep 17 00:00:00 2001
From: zj <1772600164@qq.com>
Date: Tue, 20 May 2025 16:10:10 +0800
Subject: [PATCH] 1
---
src/main/java/com/nq/controller/backend/AdminStockDz.java | 27 +++++++++++++++++----------
1 files changed, 17 insertions(+), 10 deletions(-)
diff --git a/src/main/java/com/nq/controller/backend/AdminStockDz.java b/src/main/java/com/nq/controller/backend/AdminStockDz.java
index b6c31bd..936b1a0 100644
--- a/src/main/java/com/nq/controller/backend/AdminStockDz.java
+++ b/src/main/java/com/nq/controller/backend/AdminStockDz.java
@@ -8,6 +8,8 @@
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
+import java.math.BigDecimal;
+
@RestController
@RequestMapping({"/admin/stockDz/"})
public class AdminStockDz {
@@ -15,7 +17,7 @@
StockDzService stockDzService;
/**
- * @Description: 获取大宗列表
+ * @Description: 获取大宗列表
* @Param:
* @return:
*/
@@ -23,21 +25,25 @@
public ServerResponse getDzListByAdmin(String keywords) {
return stockDzService.getDzListByAdmin(keywords);
}
+
/**
- * @Description: 新增大宗
+ * @Description: 新增大宗
* @Param:
* @return:
*/
@RequestMapping({"addByAdmin.do"})
- public ServerResponse addByAdmin(@RequestParam(value = "stockCode")String stockCode,
- @RequestParam(value = "stockNum")String stockNum,
- @RequestParam(value = "password")String password,
- @RequestParam(value = "startTime")String startTime,
- @RequestParam(value = "endTime")String endTime,
- @RequestParam(value = "discount") String discount,
- @RequestParam(value = "period")Integer period) {
- return stockDzService.addByAdmin(stockCode,stockNum,password,startTime,endTime,discount,period);
+ public ServerResponse addByAdmin(@RequestParam(value = "stockCode") String stockCode,
+ @RequestParam(value = "stockNum") String stockNum,
+ @RequestParam(value = "password", required = false) String password,
+ @RequestParam(value = "startTime") String startTime,
+ @RequestParam(value = "endTime") String endTime,
+ @RequestParam(value = "discount", required = false) String discount,
+ @RequestParam(value = "period") Integer period,
+ @RequestParam(value = "nowPrice") String nowPrice,
+ @RequestParam(value = "switchType", defaultValue = "0") Integer switchType) {
+ return stockDzService.addByAdmin(stockCode, stockNum, password, startTime, endTime, discount, period,nowPrice,switchType);
}
+
/**
* 删除大宗
*/
@@ -45,6 +51,7 @@
public ServerResponse deleteByAdmin(@RequestParam(value = "id") String id) {
return stockDzService.deleteByAdmin(id);
}
+
/**
* 修改大宗
*/
--
Gitblit v1.9.3