| | |
| | | }*/ |
| | | |
| | | @GetMapping("compare") |
| | | @ApiOperation(value = "版本对比",notes = "preProductId:旧版本的产品id,productId:新版本的产品id") |
| | | @ApiOperation(value = "版本对比",notes = "preProductId:旧版本的产品id,productId:新版本的产品id;返回结果data,data2,data3分别对应diffList,addList,deleteList") |
| | | public Response compare(@RequestParam int preProductId,@RequestParam int productId){ |
| | | return service.compare(preProductId,productId); |
| | | } |
| | |
| | | return historyService.setpHistoryEnable(parentCode, customCode, version, enabled); |
| | | } |
| | | @PostMapping("zipParse") |
| | | @ApiOperation("zip解析") |
| | | @ApiOperation(value = "zip解析",notes = "返回结果中,追加data3为对比结果,为key-value集合,key为diffList,addList,deleteList") |
| | | public Response zipParse(@RequestParam("file") MultipartFile file,@RequestParam(required = false) String baseStr) throws IOException, InvalidFormatException { |
| | | //要做对比的产品,传入了物料(parent_code)和定制表单号(custom_code) |
| | | Product baseProduct = (baseStr==null?null:ActionUtil.getGson().fromJson(baseStr, Product.class)); |