| | |
| | | |
| | | import com.iailab.framework.common.pojo.CommonResult; |
| | | import com.iailab.framework.common.pojo.PageResult; |
| | | import com.iailab.iems.common.validator.AssertUtils; |
| | | import com.iailab.module.pms.coalquality.modules.detection.dto.QualityTailingDTO; |
| | | import com.iailab.module.pms.coalquality.modules.detection.service.QualityTailingService; |
| | | import com.iailab.module.pms.coalquality.modules.detection.vo.TailingPageReqVO; |
| | |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/quality/tailing") |
| | | @RequestMapping("/coal-quality/quality/tailing") |
| | | @Tag(name = "尾矿检测") |
| | | public class QualityTailingController { |
| | | @Autowired |
| | |
| | | return success(page); |
| | | } |
| | | |
| | | @GetMapping("{id}") |
| | | @GetMapping("/get") |
| | | @Operation(summary ="信息") |
| | | public CommonResult<QualityTailingDTO> get(@PathVariable("id") String id){ |
| | | public CommonResult<QualityTailingDTO> get(String id){ |
| | | QualityTailingDTO data = qualityTailingService.get(id); |
| | | return success(data); |
| | | } |
| | | |
| | | @PostMapping |
| | | @PostMapping("/create") |
| | | @Operation(summary ="保存") |
| | | public CommonResult<Boolean> save(@RequestBody QualityTailingDTO dto){ |
| | | public CommonResult<Boolean> create(@RequestBody QualityTailingDTO dto){ |
| | | |
| | | qualityTailingService.save(dto); |
| | | |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping |
| | | @PutMapping("/update") |
| | | @Operation(summary ="修改") |
| | | public CommonResult<Boolean> update(@RequestBody QualityTailingDTO dto){ |
| | | // |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary ="删除") |
| | | public CommonResult<Boolean> delete(@RequestBody String[] ids){ |
| | | //效验数据 |
| | | AssertUtils.isArrayEmpty(ids, "id"); |
| | | |
| | | qualityTailingService.delete(ids); |
| | | |