| | |
| | | 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 = materialService.addVersion(specificationsId,version); |
| | | return Result.success("添加型号"+specificationsId+"的版本"+version1+"成功"); |
| | | } |
| | | |
| | | } |