| | |
| | | |
| | | @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("右上角新增-->工艺路线") |
| | | @PostMapping("/add") |
| | | public Result<?> addTechnology(@Validated @RequestBody TechnologyDto technologyDto) { |
| | | technologyService.addTechnology(technologyDto); |
| | | return Result.success("添加工艺【" + technologyDto.getName() + "】成功"); |
| | | return Result.success(technologyService.addTechnology(technologyDto)); |
| | | } |
| | | |
| | | @ApiOperation("填写生产定额,鼠标移开保存") |