| | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResFlseLim; |
| | | import cn.gistack.sm.sjztmd.entity.AttResStagChar; |
| | | import cn.gistack.sm.sjztmd.entity.AttResWaterBlock; |
| | | import cn.gistack.sm.sjztmd.mapper.AttResFlseLimMapper; |
| | | import cn.gistack.sm.sjztmd.service.IAttResFlseLimService; |
| | | import cn.gistack.sm.sjztmd.service.IAttResStagCharService; |
| | | import cn.gistack.sm.sjztmd.service.IAttResWaterBlockService; |
| | | import cn.gistack.sm.sjztmd.vo.EditResInfoVO; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | |
| | | @Autowired |
| | | private IAttResStagCharService attResStagCharService; |
| | | |
| | | @Autowired |
| | | private IAttResWaterBlockService attResWaterBlockService; |
| | | |
| | | @Override |
| | | @Transactional |
| | | public Boolean updateAttResFlseLimByGuid(EditResInfoVO editResInfoVO) { |
| | | editResInfoVO.setUpdateTime(DateUtil.now()); |
| | | |
| | | // 修改汛期水位 |
| | | if (StringUtil.isNotBlank(String.valueOf(editResInfoVO.getTbFlseLimStag()))) { |
| | | AttResFlseLim attResFlseLim = new AttResFlseLim(); |
| | | attResFlseLim.setResGuid(editResInfoVO.getResGuid()); |
| | | attResFlseLim.setTbFlseLimStag(editResInfoVO.getTbFlseLimStag()); |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLim); |
| | | if (null != editResInfoVO.getXqswObjQ()) { |
| | | AttResFlseLim attResFlseLimQ = editResInfoVO.getXqswObjQ(); |
| | | attResFlseLimQ.setResGuid(editResInfoVO.getResGuid()); |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimQ,"前汛期"); |
| | | } |
| | | if (null != editResInfoVO.getXqswObjZ()) { |
| | | AttResFlseLim attResFlseLimZ = editResInfoVO.getXqswObjZ(); |
| | | attResFlseLimZ.setResGuid(editResInfoVO.getResGuid()); |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimZ,"中汛期"); |
| | | } |
| | | if (null != editResInfoVO.getXqswObjH()) { |
| | | AttResFlseLim attResFlseLimH = editResInfoVO.getXqswObjH(); |
| | | attResFlseLimH.setResGuid(editResInfoVO.getResGuid()); |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimH,"后汛期"); |
| | | } |
| | | |
| | | // 修改水位特征参数 |
| | |
| | | attResStagChar.setResGuid(editResInfoVO.getResGuid()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getChecFlStag())) |
| | | attResStagChar.setTbChecFlStag(editResInfoVO.getChecFlStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getDeadCap())) |
| | | attResStagChar.setTbDeadCap(editResInfoVO.getDeadCap()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getDeadStag())) |
| | | attResStagChar.setTbDeadStag(editResInfoVO.getDeadStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getFlprHighStag())) |
| | |
| | | attResStagChar.setTbNormPoolStag(editResInfoVO.getNormPoolStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getDesFlStag())) |
| | | attResStagChar.setTbDesFlStag(editResInfoVO.getDesFlStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getTotCap())) |
| | | attResStagChar.setTbTotCap(editResInfoVO.getTotCap()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getWatShedArea())) |
| | | attResStagChar.setWatShedArea(editResInfoVO.getWatShedArea()); |
| | | |
| | | // 修改坝顶高程 |
| | | if (StringUtil.isNotBlank(editResInfoVO.getTopDamTopElevation())) { |
| | | AttResWaterBlock resWaterBlock = new AttResWaterBlock(); |
| | | resWaterBlock.setResGuid(editResInfoVO.getResGuid()); |
| | | resWaterBlock.setTopDamTopElevation(editResInfoVO.getTopDamTopElevation()); |
| | | attResWaterBlockService.updateAttResWaterBlockByResId(resWaterBlock); |
| | | } |
| | | |
| | | return attResStagCharService.customizeUpdateByGuid(attResStagChar); |
| | | } |