| | |
| | | |
| | | @ApiOperation(value = "新增技术指标维护-->选择项目父类") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "工艺路线id", dataTypeClass = Integer.class, required = true) |
| | | @ApiImplicitParam(name = "techTemId", value = "工艺路线id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/chooseProFath") |
| | | public Result chooseProFath(Integer id) { |
| | | return Result.success(technicalModelService.chooseProFath(id)); |
| | | public Result chooseProFath(Integer techTemId) { |
| | | return Result.success(technicalModelService.chooseProFath(techTemId)); |
| | | } |
| | | |
| | | @ApiOperation(value = "新增技术指标维护") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "工艺路线id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/addTechMode") |
| | | public Result addTechMode(Integer id, @Validated @RequestBody TechnicalModelDto technicalModelDto) { |
| | | technicalModelService.addTechMode(id, technicalModelDto); |
| | | public Result addTechMode(@Validated @RequestBody TechnicalModelDto technicalModelDto) { |
| | | technicalModelService.addTechMode(technicalModelDto); |
| | | return Result.success("新增成功!"); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据id查询详情") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "技术指标id", dataTypeClass = Integer.class,required = true) |
| | | @ApiImplicitParam(name = "id", value = "技术指标id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @GetMapping("/selecTechById") |
| | | public Result selecTechById(Integer id) { |
| | |
| | | |
| | | @ApiOperation(value = "编辑") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "技术指标id", dataTypeClass = Integer.class,required = true) |
| | | @ApiImplicitParam(name = "id", value = "技术指标id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/writeTechById") |
| | | public Result writeTechById(Integer id,@Validated @RequestBody TechnicalModelDto technicalModelDto) { |
| | | technicalModelService.writeTechById(id,technicalModelDto); |
| | | return Result.success("修改"+id+"成功!"); |
| | | public Result writeTechById(Integer id, @Validated @RequestBody TechnicalModelDto technicalModelDto) { |
| | | technicalModelService.writeTechById(id, technicalModelDto); |
| | | return Result.success("修改" + id + "成功!"); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "id", value = "技术指标id", dataTypeClass = Integer.class,required = true) |
| | | @ApiImplicitParam(name = "id", value = "技术指标id", dataTypeClass = Integer.class, required = true) |
| | | }) |
| | | @PostMapping("/delTechById") |
| | | public Result delTechById(Integer id) { |
| | | technicalModelService.delTechById(id); |
| | | return Result.success("删除"+id+"成功!"); |
| | | return Result.success("删除" + id + "成功!"); |
| | | } |
| | | |
| | | @ApiOperation(value = "批量删除") |
| | | @ApiImplicitParams(value = { |
| | | @ApiImplicitParam(name = "ids", value = "技术指标id", dataTypeClass = String.class,required = true) |
| | | @ApiImplicitParam(name = "ids", value = "技术指标id", dataTypeClass = String.class, required = true) |
| | | }) |
| | | @PostMapping("/delAllTech") |
| | | public Result delAllTech(String ids) { |