| | |
| | | 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; |
| | |
| | | /** |
| | | * 编辑 |
| | | * |
| | | * @param attResFlseLim |
| | | * @param editResInfoVO 修改实体类对象 |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "水库特征水位-编辑", notes = "水库特征水位-编辑") |
| | | @ApiOperation(value = "水库特征水位、汛期限制水位-编辑", notes = "水库特征水位、汛期限制水位-编辑") |
| | | @PostMapping(value = "/edit") |
| | | public R edit(@RequestBody AttResFlseLim attResFlseLim) { |
| | | if (StringUtil.isBlank(attResFlseLim.getGuid())) { |
| | | public R edit(@RequestBody EditResInfoVO editResInfoVO) { |
| | | if (StringUtil.isBlank(editResInfoVO.getResGuid())) { |
| | | return R.fail("参数不正确"); |
| | | } |
| | | return R.data(attResFlseLimService.updateAttResFlseLimByGuid(attResFlseLim)); |
| | | return R.data(attResFlseLimService.updateAttResFlseLimByGuid(editResInfoVO)); |
| | | } |
| | | } |