| | |
| | | package com.ruoyi.quality.controller; |
| | | |
| | | import com.ruoyi.framework.aspectj.lang.annotation.Log; |
| | | import com.ruoyi.framework.aspectj.lang.enums.BusinessType; |
| | | import com.ruoyi.framework.web.domain.R; |
| | | import com.ruoyi.quality.pojo.QualityTestStandardBinding; |
| | | import com.ruoyi.quality.service.QualityTestStandardBindingService; |
| | |
| | | */ |
| | | @PostMapping("/add") |
| | | @Operation(summary = "新增检测标准主表与产品关联表") |
| | | @Log(title = "新增检测标准主表与产品关联表", businessType = BusinessType.INSERT) |
| | | public R<?> add(@RequestBody List<QualityTestStandardBinding> qualityTestStandardBindings) { |
| | | return R.ok(qualityTestStandardBindingService.add(qualityTestStandardBindings)); |
| | | } |
| | |
| | | */ |
| | | @DeleteMapping("/del") |
| | | @Operation(summary = "删除检测标准主表与产品关联表") |
| | | @Log(title = "删除检测标准主表与产品关联表", businessType = BusinessType.DELETE) |
| | | public R<?> delQualityTestStandard(@RequestBody List<Integer> ids) { |
| | | if (CollectionUtils.isEmpty(ids)) { |
| | | return R.fail("请选择至少一条数据"); |
| | |
| | | */ |
| | | @GetMapping("/list") |
| | | @Operation(summary = "检测指标维护查询") |
| | | @Log(title = "检测指标维护查询", businessType = BusinessType.OTHER) |
| | | public R<?> listBinding(Long testStandardId) { |
| | | return R.ok(qualityTestStandardBindingService.listBinding(testStandardId)); |
| | | } |