| | |
| | | import cn.gistack.nky.service.INkyService; |
| | | import cn.gistack.nky.service.IZtApiService; |
| | | import cn.gistack.nky.vo.AlarmGetVO; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import lombok.AllArgsConstructor; |
| | | import org.springframework.stereotype.Service; |
| | |
| | | |
| | | List<DataResPo> cdList = getResCdList(type); |
| | | cdList.forEach(dataResPo -> { |
| | | if (dataResPo.getChildren() != null){ |
| | | if (dataResPo.getChildren() != null && dataResPo.getChildren().size()>0){ |
| | | BatchDataPo batchDataPo = new BatchDataPo(dataResPo, type); |
| | | nkyService.batchData(batchDataPo); |
| | | } |
| | |
| | | return baseMapper.getAlarmDetail(alarmGet); |
| | | } |
| | | |
| | | @Override |
| | | public IPage<AlarmGetVO> getAlarmDetailPage(IPage<AlarmGetVO> page, AlarmGetVO alarmGet) { |
| | | return page.setRecords(baseMapper.getAlarmDetailPage(page,alarmGet)); |
| | | } |
| | | |
| | | @Override |
| | | public AlarmGetVO getAlarmVO(AlarmGetVO alarmGet) { |
| | | return baseMapper.getAlarmVo(alarmGet); |
| | | } |
| | | |
| | | /** |
| | | * 获取水库集 |
| | | * |
| | |
| | | cdList = ztApiService.getResSy(); |
| | | } else if (type.equals("2")) { |
| | | //获取渗流测点 |
| | | return null; |
| | | cdList=ztApiService.getResSl(); |
| | | } else if (type.equals("3") || type.equals("4") || type.equals("5")) { |
| | | //获取位移测点 |
| | | cdList = ztApiService.getResWy(); |