From 69dc8111a1959a3457ad2fb5417e043aad9da4af Mon Sep 17 00:00:00 2001 From: hxh <762326930@qq.com> Date: Mon, 13 Nov 2023 09:46:49 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B0=83=E6=95=B4api=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/kms/yxgh/df/controller/DfPlanController.java | 12 ++++++------ .../kms/yxgh/sz/controller/SzCheckingController.java | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/shuili-system/src/main/java/com/kms/yxgh/df/controller/DfPlanController.java b/shuili-system/src/main/java/com/kms/yxgh/df/controller/DfPlanController.java index c0fde726..c975724b 100644 --- a/shuili-system/src/main/java/com/kms/yxgh/df/controller/DfPlanController.java +++ b/shuili-system/src/main/java/com/kms/yxgh/df/controller/DfPlanController.java @@ -1,8 +1,8 @@ package com.kms.yxgh.df.controller; import com.baomidou.mybatisplus.core.metadata.IPage; -import com.kms.common.utils.BaseEntityUtils; import com.kms.yxgh.base.Response; +import com.kms.yxgh.df.domain.dto.DfPlanDetailDto; import com.kms.yxgh.df.domain.entity.DfPlan; import com.kms.yxgh.df.service.DfPlanService; import com.shuili.common.annotation.Log; @@ -50,7 +50,7 @@ public class DfPlanController { */ @ApiOperation(" 堤防巡视检查计划详情") @GetMapping(value = "/{id}") - public Response getInfo(@PathVariable("id") Long id) { + public Response getInfo(@PathVariable("id") Long id) { return Response.ok(); } @@ -60,8 +60,8 @@ public class DfPlanController { @Log(title = "堤防巡视检查计划新增", businessType = BusinessType.INSERT) @PostMapping @ApiOperation("堤防巡视检查计划新增") - public Response add(@RequestBody DfPlan dfPlan) { - BaseEntityUtils.preInsert(dfPlan); + public Response add(@RequestBody DfPlanDetailDto dfPlan) { +// BaseEntityUtils.preInsert(dfPlan); return Response.ok(); } @@ -71,7 +71,7 @@ public class DfPlanController { @ApiOperation("堤防巡视检查计划修改") @Log(title = "堤防巡视检查计划修改", businessType = BusinessType.UPDATE) @PutMapping - public Response edit(@RequestBody DfPlan dfPlan) { + public Response edit(@RequestBody DfPlanDetailDto dfPlan) { return Response.ok(); } @@ -81,7 +81,7 @@ public class DfPlanController { @ApiOperation("堤防巡视检查计划删除") @Log(title = "堤防巡视检查计划删除", businessType = BusinessType.DELETE) @DeleteMapping("/{ids}") - public Response remove(@PathVariable Long[] ids) { + public Response remove(@PathVariable Long[] ids) { return Response.ok(); } } diff --git a/shuili-system/src/main/java/com/kms/yxgh/sz/controller/SzCheckingController.java b/shuili-system/src/main/java/com/kms/yxgh/sz/controller/SzCheckingController.java index a734c790..1afe31f1 100644 --- a/shuili-system/src/main/java/com/kms/yxgh/sz/controller/SzCheckingController.java +++ b/shuili-system/src/main/java/com/kms/yxgh/sz/controller/SzCheckingController.java @@ -25,7 +25,7 @@ import org.springframework.web.bind.annotation.RestController; @RestController @AllArgsConstructor @RequestMapping("/run/sz/checking") -@Api(tags = "堤防巡视检查") +@Api(tags = "水闸巡视检查") public class SzCheckingController { @@ -35,7 +35,7 @@ public class SzCheckingController { * 查询堤防巡视检查列表 */ @PostMapping("/list") - @ApiOperation("堤防巡视检查列表") + @ApiOperation("水闸巡视检查列表") public IPage list(@RequestBody SearchParam sp) { return dfCheckingService.selectPage(sp); } @@ -44,7 +44,7 @@ public class SzCheckingController { /** * 获取堤防巡视检查详细信息 */ - @ApiOperation(" 堤防巡视检查详情") + @ApiOperation("水闸巡视检查详情") @GetMapping(value = "/{id}") public AjaxResult getInfo(@PathVariable("id") Long id) { return AjaxResult.success(dfCheckingService.getById(id));