zj
2026-01-14 3a1977e8cc0c5fffbc6490f220f30116af6cce86
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
package com.nq.controller.backend;
 
import com.nq.common.ServerResponse;
import com.nq.pojo.StockConfig;
import com.nq.service.IStockConfigServices;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;
 
@Controller
@RequestMapping({"/admin/stock/config"})
public class AdminStockConfigController {
 
 
 
    @Autowired
    IStockConfigServices stockConfigServices;
 
    @RequestMapping({"updateConfig.do"})
    @ResponseBody
    public ServerResponse updateConfig(StockConfig stockConfig){
      return  stockConfigServices.updateStockConfig(stockConfig);
    }
 
 
    @RequestMapping({"queryStockConfig.do"})
    @ResponseBody
    public  ServerResponse  updateConfig(@RequestParam(value = "desc",required = false) String desc){
        return  stockConfigServices.queryAll(desc);
 
    }
 
}