| | |
| | | |
| | | 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) { |
| | |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimQ,"前汛期"); |
| | | } |
| | | if (null != editResInfoVO.getXqswObjZ()) { |
| | | AttResFlseLim attResFlseLimZ = editResInfoVO.getXqswObjQ(); |
| | | AttResFlseLim attResFlseLimZ = editResInfoVO.getXqswObjZ(); |
| | | attResFlseLimZ.setResGuid(editResInfoVO.getResGuid()); |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimZ,"中汛期"); |
| | | } |
| | | if (null != editResInfoVO.getXqswObjH()) { |
| | | AttResFlseLim attResFlseLimH = editResInfoVO.getXqswObjQ(); |
| | | AttResFlseLim attResFlseLimH = editResInfoVO.getXqswObjH(); |
| | | attResFlseLimH.setResGuid(editResInfoVO.getResGuid()); |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimH,"后汛期"); |
| | | } |
| | |
| | | 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); |
| | | } |
| | | } |