| | |
| | | package cn.gistack.sm.sjztmd.service.impl; |
| | | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResDangerManageSpecial; |
| | | 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.IAttResDangerManageSpecialService; |
| | | import cn.gistack.sm.sjztmd.service.IAttResFlseLimService; |
| | | import cn.gistack.sm.sjztmd.service.IAttResStagCharService; |
| | | import cn.gistack.sm.sjztmd.service.IAttResWaterBlockService; |
| | |
| | | private IAttResWaterBlockService attResWaterBlockService; |
| | | |
| | | @Autowired |
| | | private IAttResDangerManageSpecialService attResDangerManageSpecialService; |
| | | |
| | | @Autowired |
| | | private IUserClient userClient; |
| | | |
| | | @Override |
| | |
| | | editResInfoVO.setUpdateTime(DateUtil.now()); |
| | | |
| | | // 修改汛期水位 |
| | | if (null != editResInfoVO.getXqswObjQ()) { |
| | | if (null != editResInfoVO.getXqswObjQ() && StringUtil.isNotBlank(String.valueOf(editResInfoVO.getXqswObjQ().getTbFlseLimStag()))) { |
| | | AttResFlseLim attResFlseLimQ = editResInfoVO.getXqswObjQ(); |
| | | attResFlseLimQ.setResGuid(editResInfoVO.getResGuid()); |
| | | attResFlseLimQ.setUpdateTime(DateUtil.now()); |
| | |
| | | |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimQ,"前汛期"); |
| | | } |
| | | if (null != editResInfoVO.getXqswObjZ()) { |
| | | if (null != editResInfoVO.getXqswObjZ() && StringUtil.isNotBlank(String.valueOf(editResInfoVO.getXqswObjZ().getTbFlseLimStag()))) { |
| | | AttResFlseLim attResFlseLimZ = editResInfoVO.getXqswObjZ(); |
| | | attResFlseLimZ.setResGuid(editResInfoVO.getResGuid()); |
| | | attResFlseLimZ.setUpdateTime(DateUtil.now()); |
| | |
| | | |
| | | baseMapper.updateAttResFlseLimByGuid(attResFlseLimZ,"中汛期"); |
| | | } |
| | | if (null != editResInfoVO.getXqswObjH()) { |
| | | if (null != editResInfoVO.getXqswObjH() && StringUtil.isNotBlank(String.valueOf(editResInfoVO.getXqswObjH().getTbFlseLimStag()))) { |
| | | AttResFlseLim attResFlseLimH = editResInfoVO.getXqswObjH(); |
| | | attResFlseLimH.setResGuid(editResInfoVO.getResGuid()); |
| | | attResFlseLimH.setUpdateTime(DateUtil.now()); |
| | |
| | | attResStagChar.setWatShedArea(editResInfoVO.getWatShedArea()); |
| | | |
| | | // 修改坝顶高程 |
| | | if (StringUtil.isNotBlank(editResInfoVO.getTopDamTopElevation())) { |
| | | if (StringUtil.isNotBlank(editResInfoVO.getTbDamTopElevation())) { |
| | | AttResWaterBlock resWaterBlock = new AttResWaterBlock(); |
| | | resWaterBlock.setResGuid(editResInfoVO.getResGuid()); |
| | | resWaterBlock.setTopDamTopElevation(editResInfoVO.getTopDamTopElevation()); |
| | | resWaterBlock.setTbDamTopElevation(editResInfoVO.getTbDamTopElevation()); |
| | | attResWaterBlockService.updateAttResWaterBlockByResId(resWaterBlock); |
| | | } |
| | | |
| | | // 修改控制运行水位 |
| | | if (StringUtil.isNotBlank(editResInfoVO.getTbControlZ())) { |
| | | AttResDangerManageSpecial attResDangerManageSpecial = new AttResDangerManageSpecial(); |
| | | attResDangerManageSpecial.setResGuid(editResInfoVO.getResGuid()); |
| | | attResDangerManageSpecial.setTbControlZ(editResInfoVO.getTbControlZ()); |
| | | attResDangerManageSpecialService.updateAttResDangerManageSpecialByResId(attResDangerManageSpecial); |
| | | } |
| | | |
| | | return attResStagCharService.customizeUpdateByGuid(attResStagChar); |
| | | } |
| | | } |