whycxzp
2023-02-03 1efc8a95ab0730af9ea0200d5e43944440c34fad
src/main/java/com/whyc/controller/ProductController.java
@@ -80,6 +80,12 @@
        return bomHistoryService.getBomHistoryAndMaterial(productId,version);
    }
    @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")
@@ -111,4 +117,18 @@
    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();
    }
}