| | |
| | | @Autowired |
| | | private TechnologyService technologyService; |
| | | |
| | | @ApiOperation("右上角新增-->工艺路线-->选择设备组") |
| | | @ApiOperation("右上角新增-->工艺路线-->选择生产设备组") |
| | | @GetMapping("/chooseDevice") |
| | | public Result<?> chooseDevice() { |
| | | return Result.success(technologyService.chooseDevice()); |
| | |
| | | |
| | | @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) |
| | | }) |
| | | @GetMapping("/chooseFather") |
| | | public Result<?> chooseFather(Integer specificationsId) { |
| | | return Result.success(technologyService.chooseFather(specificationsId)); |
| | | public Result<?> chooseFather(Integer specificationsId,Integer version) { |
| | | return Result.success(technologyService.chooseFather(specificationsId,version)); |
| | | } |
| | | |
| | | @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); |
| | | return Result.success("添加工艺【" + technologyDto.getName() + "】成功"); |
| | | public Result<?> addTechnology(@Validated @RequestBody TechnologyDto technologyDto) { |
| | | return Result.success(technologyService.addTechnology(technologyDto)); |
| | | } |
| | | |
| | | @ApiOperation("填写生产定额,鼠标移开保存") |