|
|
@ -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<DfPlanDetailDto> 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<DfPlanDetailDto> 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<DfPlanDetailDto> 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<Boolean> remove(@PathVariable Long[] ids) { |
|
|
|
return Response.ok(); |
|
|
|
} |
|
|
|
} |
|
|
|