package cn.gistack.sm.sjztmd.controller;
|
|
import cn.gistack.sm.sjztmd.entity.AttResDangerManageSpecial;
|
import cn.gistack.sm.sjztmd.service.IAttResDangerManageSpecialService;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import lombok.AllArgsConstructor;
|
import lombok.extern.slf4j.Slf4j;
|
import org.springblade.core.boot.ctrl.BladeController;
|
import org.springblade.core.tool.api.R;
|
import org.springblade.core.tool.utils.StringUtil;
|
import org.springframework.web.bind.annotation.PostMapping;
|
import org.springframework.web.bind.annotation.RequestBody;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
/**
|
* @PROJECT_NAME: skjcmanager
|
* @DESCRIPTION: 病险水库controller
|
* @USER: aix
|
* @DATE: 2023/6/1 14:33
|
*/
|
@Slf4j
|
@Api(tags = "中台病险水库")
|
@RestController
|
@RequestMapping("/sjztmd/attResDangerManageSpecial")
|
@AllArgsConstructor
|
public class AttResDangerManageSpecialController extends BladeController {
|
|
private final IAttResDangerManageSpecialService attResDangerManageSpecialService;
|
|
@ApiOperation(value = "病险水库控制水位-编辑", notes = "病险水库控制水位-编辑")
|
@PostMapping(value = "/edit")
|
public R edit(@RequestBody AttResDangerManageSpecial attResDangerManageSpecial) {
|
|
if (StringUtil.isBlank(attResDangerManageSpecial.getResGuid())) {
|
return R.fail("参数不正确");
|
}
|
|
return R.data(attResDangerManageSpecialService.updateAttResDangerManageSpecialByResId(attResDangerManageSpecial));
|
|
}
|
|
}
|