| | |
| | | |
| | | 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.QualityMediumDTO; |
| | | import com.iailab.module.pms.coalquality.modules.detection.service.QualityMediumService; |
| | | import com.iailab.module.pms.coalquality.modules.detection.vo.MediumPageReqVO; |
| | |
| | | */ |
| | | @Slf4j |
| | | @RestController |
| | | @RequestMapping("/xmcpms/quality/medium") |
| | | @RequestMapping("/coal-quality/quality/medium") |
| | | @Tag(name = "介质粉检测") |
| | | public class QualityMediumController { |
| | | @Autowired |
| | |
| | | return success(page); |
| | | } |
| | | |
| | | @GetMapping("{id}") |
| | | @GetMapping("/get") |
| | | @Operation(summary = "信息") |
| | | public CommonResult<QualityMediumDTO> get(@PathVariable("id") String id){ |
| | | public CommonResult<QualityMediumDTO> get(String id){ |
| | | QualityMediumDTO data = qualityMediumService.get(id); |
| | | return success(data); |
| | | } |
| | | |
| | | @PostMapping |
| | | @PostMapping("/create") |
| | | @Operation(summary = "保存") |
| | | public CommonResult<Boolean> save(@RequestBody QualityMediumDTO dto){ |
| | | public CommonResult<Boolean> create(@RequestBody QualityMediumDTO dto){ |
| | | // //效验数据 |
| | | // ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); |
| | | |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | @PutMapping |
| | | @PutMapping("/update") |
| | | @Operation(summary = "修改") |
| | | public CommonResult<Boolean> update(@RequestBody QualityMediumDTO dto){ |
| | | // //效验数据 |
| | |
| | | return success(true); |
| | | } |
| | | |
| | | @DeleteMapping |
| | | @DeleteMapping("/delete") |
| | | @Operation(summary = "删除") |
| | | public CommonResult<Boolean> delete(@RequestBody String[] ids){ |
| | | //效验数据 |
| | | AssertUtils.isArrayEmpty(ids, "id"); |
| | | |
| | | qualityMediumService.delete(ids); |
| | | |