| | |
| | | } |
| | | |
| | | @ApiOperation("右上角新增-->工艺路线") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "specificationsId", value = "型号id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/add") |
| | | public Result<?> addTechnology(Integer specificationsId, @Validated @RequestBody TechnologyDto technologyDto) { |
| | | technologyService.addTechnology(specificationsId, technologyDto); |
| | | public Result<?> addTechnology(@Validated @RequestBody TechnologyDto technologyDto) { |
| | | technologyService.addTechnology(technologyDto); |
| | | return Result.success("添加工艺【" + technologyDto.getName() + "】成功"); |
| | | } |
| | | |
| | |
| | | return Result.fail("更新失败"); |
| | | } |
| | | |
| | | @ApiOperation("选择设备组,鼠标移开保存") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "工艺路线id", dataTypeClass = Integer.class, required = true), |
| | | @ApiImplicitParam(name = "deviceGroup", value = "设备组", dataTypeClass = String.class, required = true) |
| | | |
| | | }) |
| | | @PostMapping("/writeDevice") |
| | | public Result<?> writeDevice(Integer id, String deviceGroup) { |
| | | Integer write = technologyService.writeDevice(id, deviceGroup); |
| | | if (write >= 1) { |
| | | return Result.success("更新成功"); |
| | | } |
| | | return Result.fail("更新失败"); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "删除") |
| | | @ApiImplicitParams(value = { |