| | |
| | | return Result.fail("更新失败"); |
| | | } |
| | | |
| | | @ApiOperation("添加同一个型号物料清单的版本") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "specificationsId", value = "型号id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "version", value = "当前版本", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/addVersion") |
| | | public Result<?> addVersion(Integer specificationsId ,Integer version) { |
| | | Integer version1 = mbomService.addVersion(specificationsId,version); |
| | | return Result.success("添加型号"+specificationsId+"的物料清单版本"+version1+"成功"); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "物料清单id", dataTypeClass = Integer.class,required = true) |