| | |
| | | @DeleteMapping("/deleteList") |
| | | @AuthHandler |
| | | public Result<?> deleteList(String ids) { |
| | | if(ids==null||ids.equals(""))return Result.fail(); |
| | | MyUtil.PrintLog(ids); |
| | | productService.deleteList(ids); |
| | | return Result.success("删除成功"); |
| | |
| | | |
| | | @ApiOperation("添加同一个型号的其他版本") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "specificationsId", value = "型号id", dataTypeClass = Integer.class, required = true) |
| | | @ApiImplicitParam(name = "specificationsId", value = "型号id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "version", value = "当前版本", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/addVersion") |
| | | @AuthHandler |
| | | public Result<?> addVersion(Integer specificationsId ) { |
| | | Integer version = productService.addVersion(specificationsId); |
| | | return Result.success("添加版本"+version+"成功"); |
| | | public Result<?> addVersion(Integer specificationsId,Integer version ) { |
| | | Integer version1 = productService.addVersion(specificationsId,version); |
| | | return Result.success("添加版本"+version1+"成功"); |
| | | } |
| | | } |