From f25b39e0d5fcae415a8824fc03d42fe681e96bf8 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Mon, 21 Jul 2025 17:17:48 +0800
Subject: [PATCH] 移除多余引用

---
 src/main/java/com/nq/controller/backend/AdminStockDz.java |   24 +++++++++++++++---------
 1 files changed, 15 insertions(+), 9 deletions(-)

diff --git a/src/main/java/com/nq/controller/backend/AdminStockDz.java b/src/main/java/com/nq/controller/backend/AdminStockDz.java
index 19eb0aa..a029883 100644
--- a/src/main/java/com/nq/controller/backend/AdminStockDz.java
+++ b/src/main/java/com/nq/controller/backend/AdminStockDz.java
@@ -15,7 +15,7 @@
     StockDzService stockDzService;
 
     /**
-     * @Description:  获取大宗列表
+     * @Description: 获取大宗列表
      * @Param:
      * @return:
      */
@@ -23,20 +23,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) {
-        return stockDzService.addByAdmin(stockCode,stockNum,password,startTime,endTime,discount);
+    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);
     }
+
     /**
      * 删除大宗
      */
@@ -44,6 +49,7 @@
     public ServerResponse deleteByAdmin(@RequestParam(value = "id") String id) {
         return stockDzService.deleteByAdmin(id);
     }
+
     /**
      * 修改大宗
      */

--
Gitblit v1.9.3