|
|
@ -1,6 +1,7 @@ |
|
|
|
package com.hnac.hzims.alarm.tabulate.service.impl; |
|
|
|
package com.hnac.hzims.alarm.tabulate.service.impl; |
|
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
|
|
|
|
|
|
import com.hnac.hzims.alarm.config.constants.AlarmConstants; |
|
|
|
import com.hnac.hzims.alarm.tabulate.service.AlarmTabulateService; |
|
|
|
import com.hnac.hzims.alarm.tabulate.service.AlarmTabulateService; |
|
|
|
import com.hnac.hzims.alarm.tabulate.vo.TabulateEarlyVo; |
|
|
|
import com.hnac.hzims.alarm.tabulate.vo.TabulateEarlyVo; |
|
|
|
import com.hnac.hzims.alarm.tabulate.vo.TabulateLevelVo; |
|
|
|
import com.hnac.hzims.alarm.tabulate.vo.TabulateLevelVo; |
|
|
@ -16,17 +17,12 @@ import com.hnac.hzinfo.sdk.v5.soe.vo.StbAnalysisVO; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.apache.commons.collections4.MapUtils; |
|
|
|
import org.springblade.core.tool.utils.CollectionUtil; |
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
import org.springblade.core.tool.utils.DateUtil; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.ObjectUtil; |
|
|
|
|
|
|
|
import org.springblade.core.tool.utils.StringUtil; |
|
|
|
|
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.lang.reflect.Array; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.time.LocalDateTime; |
|
|
|
import java.util.ArrayList; |
|
|
|
import java.util.*; |
|
|
|
import java.util.Collections; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* @author ysj |
|
|
|
* @author ysj |
|
|
@ -122,8 +118,10 @@ public class AlarmTabulateServiceImpl implements AlarmTabulateService { |
|
|
|
query.setPage((int) page.getCurrent()); |
|
|
|
query.setPage((int) page.getCurrent()); |
|
|
|
query.setLimit((int) page.getSize()); |
|
|
|
query.setLimit((int) page.getSize()); |
|
|
|
query.setStationIds(Collections.singletonList(param.getProjectId())); |
|
|
|
query.setStationIds(Collections.singletonList(param.getProjectId())); |
|
|
|
if(CollectionUtil.isNotEmpty(param.getTypes())){ |
|
|
|
if(StringUtil.isNotBlank(param.getTypes())){ |
|
|
|
query.setTypes(param.getTypes()); |
|
|
|
query.setTypes(Func.toStrList(",",param.getTypes())); |
|
|
|
|
|
|
|
}else { |
|
|
|
|
|
|
|
query.setTypes(AlarmConstants.HZ3000_TYPES); |
|
|
|
} |
|
|
|
} |
|
|
|
if(StringUtil.isNotBlank(param.getStartTime())){ |
|
|
|
if(StringUtil.isNotBlank(param.getStartTime())){ |
|
|
|
query.setBeginTime(LocalDateTime.parse(param.getStartTime(),DateUtil.DATETIME_FORMATTER)); |
|
|
|
query.setBeginTime(LocalDateTime.parse(param.getStartTime(),DateUtil.DATETIME_FORMATTER)); |
|
|
|