lxw
2023-02-17 0a3669ee2ab2aa24cfd5be040daca06ca37b6634
src/main/java/com/whyc/controller/ProductController.java
@@ -14,7 +14,6 @@
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.Date;
@Api(tags = "产品管理")
@RestController
@@ -81,6 +80,18 @@
        return bomHistoryService.getBomHistoryAndMaterial(productId,version);
    }
    @ApiOperation(value = "历史产品信息查看(产品中有0120开头的物料其实是产品,查看产品信息)",notes = "2.8修改后使用!!!暂时无用!!!!")
    @GetMapping("getBomHistoryAndMaterial_0120")
    public Response getBomHistoryAndMaterial_0120( @RequestParam String parentCode, @RequestParam String parentName, @RequestParam String parentModel){
        return bomHistoryService.getBomHistoryAndMaterial_0120(parentCode,parentName,parentModel);
    }
    @ApiOperation(value = "根据产品母料型号,定制单号,版本下载原始压缩包文件",notes = "11.17修改后使用")
    @GetMapping("getOriginalZip")
    public Response getOriginalZip( @RequestParam String parentModel,@RequestParam(required = false) String customCode,@RequestParam int version){
        return bomHistoryService.getOriginalZip(parentModel,customCode,version);
    }
    @ApiOperation(value = "历史产品下载(产品id和版本<下载的版本>)",notes = "8.17修改后使用")
    @GetMapping("downloadProductHistory")
@@ -106,4 +117,30 @@
    public Response add(@RequestBody Product product) throws IOException {
        return service.add(product);
    }
    @ApiOperation(value = "根据产品id查询被锁定的物料dwg和产品丝印",notes = "8.17修改后使用")
    @GetMapping("getLockedByProductId")
    public Response getLockedByProductId( @RequestParam int productId){
        return service.getLockedByProductId(productId);
    }
    /*@GetMapping("manualUpdate")
    @Transactional
    public void manualUpdate(){
        //material属性转移到bom和bomHistory
        bomHistoryService.updateMaterialField2BomHistory();
        bomService.updateMaterialField2Bom();
    }*/
    @ApiOperation(tags = "反馈管理",value = "查询当前使用的所有的产品")
    @GetMapping("getFkProduct")
    public Response getFkProduct(){
        return service.getFkProduct();
    }
    @ApiOperation(value = "产品对比下拉选中")
    @GetMapping("getCompareProduct")
    public Response getCompareProduct(){
        return service.getCompareProduct();
    }
}