From 0ba1a0b7a8528d78aa5180fc76bb4975b0da2a47 Mon Sep 17 00:00:00 2001
From: zyy <zyy@email.com>
Date: Wed, 25 Jun 2025 16:03:42 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/6-29' into 6-29
---
src/main/java/com/nq/controller/agent/AgentStockDz.java | 63 +++++++++++++++++++++++++++++++
1 files changed, 63 insertions(+), 0 deletions(-)
diff --git a/src/main/java/com/nq/controller/agent/AgentStockDz.java b/src/main/java/com/nq/controller/agent/AgentStockDz.java
new file mode 100644
index 0000000..57714e8
--- /dev/null
+++ b/src/main/java/com/nq/controller/agent/AgentStockDz.java
@@ -0,0 +1,63 @@
+package com.nq.controller.agent;
+
+
+import com.nq.common.ServerResponse;
+import com.nq.pojo.StockDz;
+import com.nq.service.StockDzService;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RequestParam;
+import org.springframework.web.bind.annotation.RestController;
+
+
+@RestController
+@RequestMapping({"/agent/stockDz/"})
+public class AgentStockDz {
+ @Autowired
+ StockDzService stockDzService;
+
+ /**
+ * @Description: 获取大宗列表
+ * @Param:
+ * @return:
+ */
+ @RequestMapping({"getDzListByAdmin.do"})
+ public ServerResponse getDzListByAdmin(String keywords) {
+ return stockDzService.getDzListByAdmin(keywords);
+ }
+
+ /**
+ * @Description: 新增大宗
+ * @Param:
+ * @return:
+ */
+ @RequestMapping({"addByAdmin.do"})
+ 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);
+ }
+
+ /**
+ * 删除大宗
+ */
+ @RequestMapping({"deleteByAdmin.do"})
+ public ServerResponse deleteByAdmin(@RequestParam(value = "id") String id) {
+ return stockDzService.deleteByAdmin(id);
+ }
+
+ /**
+ * 修改大宗
+ */
+ @RequestMapping({"updateByAdmin.do"})
+ public ServerResponse updateByAdmin(StockDz model) {
+ return stockDzService.updByAdmin(model);
+ }
+
+}
--
Gitblit v1.9.3