| | |
| | | |
| | | |
| | | @ApiOperation("右上角新增-->物料清单") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "technologyId", value = "工艺路线id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/add") |
| | | public Result<?> addMbom(Integer technologyId, @Validated @RequestBody MbomDto mbomDto) { |
| | | mbomService.addMbom(technologyId, mbomDto); |
| | | public Result<?> addMbom(@Validated @RequestBody MbomDto mbomDto) { |
| | | mbomService.addMbom( mbomDto); |
| | | return Result.success("添加物料清单【" + mbomDto.getName() + "】成功"); |
| | | } |
| | | |
| | |
| | | return Result.success("更新成功"); |
| | | } |
| | | 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 = "删除") |