| | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | import java.util.Date; |
| | | |
| | | @Api(tags = "产品管理") |
| | | @RestController |
| | |
| | | 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") |
| | |
| | | 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(); |
| | | }*/ |
| | | |
| | | } |