lxw
2022-08-19 5d9865a1b1d48cb3192ecce036f706ef582c1424
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package com.whyc.controller;
 
import com.whyc.dto.Response;
import com.whyc.service.ProductService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
 
@Api(tags = "产品管理")
public class ProductController {
    @Autowired
    private ProductService service;
 
    @ApiOperation(tags = "物料管理",value = "根据物料编码查询所有包含该物料的产品信息",notes = "8.17修改后使用")
    @GetMapping("getProductByMaterial")
    public Response getProductByMaterial(@RequestParam String subCode){
        return service.getProductByMaterial(subCode);
    }
}