lxw
2022-08-19 6fbdaa6f6d9da6d489d079f3b8b8820e49be26c8
src/main/java/com/whyc/controller/ProductController.java
@@ -2,6 +2,7 @@
import com.whyc.dto.Response;
import com.whyc.pojo.ProductHistory;
import com.whyc.service.ProductBomService;
import com.whyc.service.ProductHistoryService;
import com.whyc.service.ProductService;
import io.swagger.annotations.Api;
@@ -22,6 +23,9 @@
    @Autowired
    private ProductHistoryService historyService;
    @Autowired
    private ProductBomService bomService;
    @ApiOperation(tags = "物料管理",value = "根据物料编码查询所有包含该物料的产品信息",notes = "8.17修改后使用")
    @GetMapping("getProductByMaterial")
    public Response getProductByMaterial(@RequestParam String subCode){
@@ -39,5 +43,9 @@
    public Response getProductVersion( @RequestParam String parentModel, String customCode){
        return historyService.getProductVersion(parentModel,customCode);
    }
    @ApiOperation(value = "根据产品id查询子件及其关联的物料信息",notes = "8.17修改后使用")
    @GetMapping("getBomAndMaterial")
    public Response getBomAndMaterial( @RequestParam int productId){
        return bomService.getBomAndMaterial(productId);
    }
}