| | |
| | | import com.ruoyi.technology.bean.vo.TechnologyOperationParamVo; |
| | | import com.ruoyi.technology.pojo.TechnologyOperationParam; |
| | | import com.ruoyi.technology.service.TechnologyOperationParamService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.v3.oas.annotations.tags.Tag; |
| | | import io.swagger.v3.oas.annotations.Operation; |
| | | import lombok.RequiredArgsConstructor; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RestController |
| | | @RequestMapping("/technologyOperationParam") |
| | | @Api(tags = "工序参数") |
| | | @Tag(name = "工序参数") |
| | | @RequiredArgsConstructor |
| | | public class TechnologyOperationParamController { |
| | | |
| | | private final TechnologyOperationParamService technologyOperationParamService; |
| | | |
| | | @GetMapping("/list") |
| | | @ApiOperation("工序参数列表查询") |
| | | @Operation(summary = "工序参数列表查询") |
| | | public R<List<TechnologyOperationParamVo>> list(TechnologyOperationParamDto technologyOperationParamDto) { |
| | | return R.ok(technologyOperationParamService.listOperationParam(technologyOperationParamDto)); |
| | | } |
| | | |
| | | @PostMapping("/") |
| | | @ApiOperation("新增或修改工序参数") |
| | | @Operation(summary = "新增或修改工序参数") |
| | | public R addOrUpdate(@RequestBody TechnologyOperationParam technologyOperationParam) { |
| | | return R.ok(technologyOperationParamService.saveTechnologyOperationParam(technologyOperationParam)); |
| | | } |
| | | |
| | | @DeleteMapping("/batchDelete/{id}") |
| | | @Log(title = "Delete technology operation param", businessType = BusinessType.DELETE) |
| | | @ApiOperation("删除工序参数") |
| | | @Operation(summary = "删除工序参数") |
| | | public AjaxResult batchDelete(@PathVariable("id") Long id) { |
| | | return AjaxResult.success(technologyOperationParamService.batchDelete(id)); |
| | | } |