| | |
| | | |
| | | |
| | | import cn.gistack.sm.sjztmd.entity.AttResFlseLim; |
| | | import cn.gistack.sm.sjztmd.entity.AttResStagChar; |
| | | 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.vo.EditResInfoVO; |
| | | import com.baomidou.dynamic.datasource.annotation.DS; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.toolkit.SqlHelper; |
| | | import org.springblade.core.tool.utils.DateUtil; |
| | | import org.springblade.core.tool.utils.StringUtil; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | |
| | | /** |
| | | * @PROJECT_NAME: skjcmanager |
| | |
| | | @Service |
| | | @DS("zt") |
| | | public class AttResFlseLimServiceImpl extends ServiceImpl<AttResFlseLimMapper, AttResFlseLim> implements IAttResFlseLimService { |
| | | |
| | | @Autowired |
| | | private IAttResStagCharService attResStagCharService; |
| | | |
| | | @Override |
| | | public Boolean updateAttResFlseLimByGuid(AttResFlseLim attResFlseLim) { |
| | | attResFlseLim.setUpdateTime(DateUtil.now()); |
| | | return SqlHelper.retBool(baseMapper.updateAttResFlseLimByGuid(attResFlseLim)); |
| | | @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); |
| | | } |
| | | |
| | | // 修改水位特征参数 |
| | | AttResStagChar attResStagChar = new AttResStagChar(); |
| | | attResStagChar.setResGuid(editResInfoVO.getResGuid()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getChecFlStag())) |
| | | attResStagChar.setTbChecFlStag(editResInfoVO.getChecFlStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getDeadStag())) |
| | | attResStagChar.setTbDeadStag(editResInfoVO.getDeadStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getFlprHighStag())) |
| | | attResStagChar.setTbFlprHighStag(editResInfoVO.getFlprHighStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getNormPoolStag())) |
| | | attResStagChar.setTbNormPoolStag(editResInfoVO.getNormPoolStag()); |
| | | if (StringUtil.isNotBlank(editResInfoVO.getDesFlStag())) |
| | | attResStagChar.setTbDesFlStag(editResInfoVO.getDesFlStag()); |
| | | |
| | | return attResStagCharService.customizeUpdateByGuid(attResStagChar); |
| | | } |
| | | } |