1
zj
2025-07-28 1caf228ac11217ac3191945f059d646a1585150c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
package com.nq.controller.backend;
 
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;
 
import java.math.BigDecimal;
 
@RestController
@RequestMapping({"/admin/stockDz/"})
public class AdminStockDz {
    @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);
    }
 
}