whycxzp
2022-11-17 0d7df8b81ebc29b1e666c34c86c011c96da91651
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,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")
@@ -112,4 +117,13 @@
    public Response getLockedByProductId( @RequestParam int productId){
        return service.getLockedByProductId(productId);
    }
    /*@GetMapping("manualUpdate")
    @Transactional
    public void manualUpdate(){
        //material属性转移到bom和bomHistory
        bomHistoryService.updateMaterialField2BomHistory();
        bomService.updateMaterialField2Bom();
    }*/
}