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()
|
public Response getProductByMaterial(@RequestParam String subCode){
|
return service.getProductByMaterial(subCode);
|
}
|
}
|