package cn.gistack.sm.sjztmd.controller;
|
|
import cn.gistack.sm.sjztmd.entity.AttResFlseLim;
|
import cn.gistack.sm.sjztmd.entity.AttResStagChar;
|
import cn.gistack.sm.sjztmd.service.IAttResFlseLimService;
|
import cn.gistack.sm.sjztmd.vo.EditResInfoVO;
|
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:
|
* @USER: aix
|
* @DATE: 2023/5/22 21:30
|
*/
|
@Slf4j
|
@Api(tags = "中台水库汛期限制水位")
|
@RestController
|
@RequestMapping("/sjztmd/attResFlseLim")
|
@AllArgsConstructor
|
public class AttResFlseLimController extends BladeController {
|
|
private final IAttResFlseLimService attResFlseLimService;
|
|
/**
|
* 编辑
|
*
|
* @param editResInfoVO 修改实体类对象
|
* @return
|
*/
|
@ApiOperation(value = "水库特征水位、汛期限制水位-编辑", notes = "水库特征水位、汛期限制水位-编辑")
|
@PostMapping(value = "/edit")
|
public R edit(@RequestBody EditResInfoVO editResInfoVO) {
|
if (StringUtil.isBlank(editResInfoVO.getResGuid())) {
|
return R.fail("参数不正确");
|
}
|
return R.data(attResFlseLimService.updateAttResFlseLimByGuid(editResInfoVO));
|
}
|
}
|