lxw
2022-08-19 8ed411856bd6341d927cd8fa7eda44e7ddad4b7d
src/main/java/com/whyc/controller/ProductController.java
@@ -1,6 +1,8 @@
package com.whyc.controller;
import com.whyc.dto.Response;
import com.whyc.pojo.ProductHistory;
import com.whyc.service.ProductHistoryService;
import com.whyc.service.ProductService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@@ -17,6 +19,9 @@
    @Autowired
    private ProductService service;
    @Autowired
    private ProductHistoryService historyService;
    @ApiOperation(tags = "物料管理",value = "根据物料编码查询所有包含该物料的产品信息",notes = "8.17修改后使用")
    @GetMapping("getProductByMaterial")
    public Response getProductByMaterial(@RequestParam String subCode){
@@ -29,4 +34,10 @@
            ,  @RequestParam(required = false) String customCode, @RequestParam int pageCurr, @RequestParam int pageSize){
        return service.getAllProduct(parentCode,parentName,parentModel,customCode,pageCurr,pageSize);
    }
    @ApiOperation(value = "产品详情查看版本信息",notes = "8.17修改后使用")
    @GetMapping("getProductVersion")
    public Response getProductVersion( @RequestParam String parentModel, String customCode){
        return historyService.getProductVersion(parentModel,customCode);
    }
}