Commit 05a6cf32 authored by duanruiming's avatar duanruiming

[update] 添加海信服务检测,删除测试数据

parent 42d834df
...@@ -25,7 +25,7 @@ import java.util.stream.Collectors; ...@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
@Slf4j @Slf4j
public class SystemServiceStatusTask { public class SystemServiceStatusTask {
private static final String LOCAL_IP = "172.17.0.1"; private static final String LOCAL_IP = "173.17.0.1";
private static final String HIK_LOCAL_IP = "10.102.1.183"; private static final String HIK_LOCAL_IP = "10.102.1.183";
...@@ -35,6 +35,7 @@ public class SystemServiceStatusTask { ...@@ -35,6 +35,7 @@ public class SystemServiceStatusTask {
sysList.add(new SystemServiceStatusDTO("MYSQL", LOCAL_IP, 3306, 30000, 0, null, null)); sysList.add(new SystemServiceStatusDTO("MYSQL", LOCAL_IP, 3306, 30000, 0, null, null));
sysList.add(new SystemServiceStatusDTO("UTC", LOCAL_IP, 32000, 30000, 0, null, null)); sysList.add(new SystemServiceStatusDTO("UTC", LOCAL_IP, 32000, 30000, 0, null, null));
sysList.add(new SystemServiceStatusDTO("海康", HIK_LOCAL_IP, 80, 30000, 0, null, null)); sysList.add(new SystemServiceStatusDTO("海康", HIK_LOCAL_IP, 80, 30000, 0, null, null));
sysList.add(new SystemServiceStatusDTO("海信", LOCAL_IP, 32000, 30000, 0, null, null));
} }
@Scheduled(fixedRate = 60 * 1000) @Scheduled(fixedRate = 60 * 1000)
......
...@@ -20,7 +20,6 @@ import net.wanji.opt.dao.mapper.strategy.SceneStrategyIdeaMapper; ...@@ -20,7 +20,6 @@ import net.wanji.opt.dao.mapper.strategy.SceneStrategyIdeaMapper;
import net.wanji.opt.dao.mapper.strategy.SceneStrategyMapper; import net.wanji.opt.dao.mapper.strategy.SceneStrategyMapper;
import net.wanji.opt.dao.mapper.strategy.StrategyMapper; import net.wanji.opt.dao.mapper.strategy.StrategyMapper;
import net.wanji.opt.dao.mapper.trend.EventAlarmMapper; import net.wanji.opt.dao.mapper.trend.EventAlarmMapper;
import net.wanji.databus.dao.mapper.GreenwaveInfoMapper;
import net.wanji.opt.dto.CrossLaneSnapshotDataDTO; import net.wanji.opt.dto.CrossLaneSnapshotDataDTO;
import net.wanji.opt.dto.LineSchemeDTO; import net.wanji.opt.dto.LineSchemeDTO;
import net.wanji.opt.dto.trend.AbnormalCrossListDTO; import net.wanji.opt.dto.trend.AbnormalCrossListDTO;
...@@ -1091,8 +1090,6 @@ public class TrendServiceImpl implements TrendService { ...@@ -1091,8 +1090,6 @@ public class TrendServiceImpl implements TrendService {
// 获取当前日期和时间的 Calendar 对象 // 获取当前日期和时间的 Calendar 对象
Calendar calendar = Calendar.getInstance(); Calendar calendar = Calendar.getInstance();
calendar.set(2024, Calendar.JANUARY, 15, 10, 0, 0);
// 设置时、分、秒和毫秒为 0,以获取当天的 00:00:00 // 设置时、分、秒和毫秒为 0,以获取当天的 00:00:00
calendar.set(Calendar.HOUR_OF_DAY, 0); calendar.set(Calendar.HOUR_OF_DAY, 0);
calendar.set(Calendar.MINUTE, 0); calendar.set(Calendar.MINUTE, 0);
...@@ -1303,8 +1300,6 @@ public class TrendServiceImpl implements TrendService { ...@@ -1303,8 +1300,6 @@ public class TrendServiceImpl implements TrendService {
List<MainlineSchemeAnalysisVO.GreenwaveData> greenwaveData) { List<MainlineSchemeAnalysisVO.GreenwaveData> greenwaveData) {
Calendar now = Calendar.getInstance(); Calendar now = Calendar.getInstance();
now.set(2024, Calendar.JANUARY, 15, 10, 0, 0);
String currentDayType = getDayType(now); String currentDayType = getDayType(now);
String currentTime = new SimpleDateFormat("HH:mm").format(now.getTime()); String currentTime = new SimpleDateFormat("HH:mm").format(now.getTime());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment