From 8d3ff63ab144ad6b48015b01196bc901944a48f9 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期一, 16 十二月 2024 10:51:41 +0800 Subject: [PATCH] 煤质部分后端代码 --- iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/wash/controller/admin/QualityWashTargetController.java | 17 ++--------------- 1 files changed, 2 insertions(+), 15 deletions(-) diff --git a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/wash/controller/admin/QualityWashTargetController.java b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/wash/controller/admin/QualityWashTargetController.java index 31d1b70..00290b5 100644 --- a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/wash/controller/admin/QualityWashTargetController.java +++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/coalquality/modules/wash/controller/admin/QualityWashTargetController.java @@ -3,12 +3,6 @@ import com.iailab.framework.common.annotation.AutoDict; import com.iailab.framework.common.pojo.CommonResult; import com.iailab.framework.common.pojo.PageResult; -import com.iailab.iems.common.utils.Result; -import com.iailab.iems.common.validator.AssertUtils; -import com.iailab.iems.common.validator.ValidatorUtils; -import com.iailab.iems.common.validator.group.AddGroup; -import com.iailab.iems.common.validator.group.DefaultGroup; -import com.iailab.iems.common.validator.group.UpdateGroup; import com.iailab.module.pms.coalquality.modules.wash.dto.QualityWashTargetDTO; import com.iailab.module.pms.coalquality.modules.wash.service.QualityWashTargetService; import com.iailab.module.pms.coalquality.modules.wash.vo.WashTargetPageReqVO; @@ -41,16 +35,14 @@ @GetMapping("/get") @Operation(summary = "信息") - public Result<QualityWashTargetDTO> get(String id) { + public CommonResult<QualityWashTargetDTO> get(String id) { QualityWashTargetDTO data = qualityWashTargetService.get(id); - return new Result<QualityWashTargetDTO>().ok(data); + return success(data); } @PostMapping @Operation(summary = "保存") public CommonResult<Boolean> save(@RequestBody QualityWashTargetDTO dto) { - //效验数据 - ValidatorUtils.validateEntity(dto, AddGroup.class, DefaultGroup.class); qualityWashTargetService.save(dto); @@ -60,9 +52,6 @@ @PutMapping @Operation(summary = "修改") public CommonResult<Boolean> update(@RequestBody QualityWashTargetDTO dto) { - //效验数据 - ValidatorUtils.validateEntity(dto, UpdateGroup.class, DefaultGroup.class); - qualityWashTargetService.update(dto); return success(true); @@ -71,8 +60,6 @@ @DeleteMapping @Operation(summary = "删除") public CommonResult<Boolean> delete(@RequestBody String[] ids) { - //效验数据 - AssertUtils.isArrayEmpty(ids, "id"); qualityWashTargetService.delete(ids); -- Gitblit v1.9.3