Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
T
traffic-signal-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
signal
traffic-signal-platform
Commits
05a6cf32
Commit
05a6cf32
authored
Mar 15, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 添加海信服务检测,删除测试数据
parent
42d834df
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
6 deletions
+2
-6
SystemServiceStatusTask.java
...main/java/net/wanji/web/task/SystemServiceStatusTask.java
+2
-1
TrendServiceImpl.java
...ain/java/net/wanji/opt/service/impl/TrendServiceImpl.java
+0
-5
No files found.
signal-control-service/src/main/java/net/wanji/web/task/SystemServiceStatusTask.java
View file @
05a6cf32
...
...
@@ -25,7 +25,7 @@ import java.util.stream.Collectors;
@Slf4j
public
class
SystemServiceStatusTask
{
private
static
final
String
LOCAL_IP
=
"17
2
.17.0.1"
;
private
static
final
String
LOCAL_IP
=
"17
3
.17.0.1"
;
private
static
final
String
HIK_LOCAL_IP
=
"10.102.1.183"
;
...
...
@@ -35,6 +35,7 @@ public class SystemServiceStatusTask {
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
(
"海康"
,
HIK_LOCAL_IP
,
80
,
30000
,
0
,
null
,
null
));
sysList
.
add
(
new
SystemServiceStatusDTO
(
"海信"
,
LOCAL_IP
,
32000
,
30000
,
0
,
null
,
null
));
}
@Scheduled
(
fixedRate
=
60
*
1000
)
...
...
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/TrendServiceImpl.java
View file @
05a6cf32
...
...
@@ -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.StrategyMapper
;
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.LineSchemeDTO
;
import
net.wanji.opt.dto.trend.AbnormalCrossListDTO
;
...
...
@@ -1091,8 +1090,6 @@ public class TrendServiceImpl implements TrendService {
// 获取当前日期和时间的 Calendar 对象
Calendar
calendar
=
Calendar
.
getInstance
();
calendar
.
set
(
2024
,
Calendar
.
JANUARY
,
15
,
10
,
0
,
0
);
// 设置时、分、秒和毫秒为 0,以获取当天的 00:00:00
calendar
.
set
(
Calendar
.
HOUR_OF_DAY
,
0
);
calendar
.
set
(
Calendar
.
MINUTE
,
0
);
...
...
@@ -1303,8 +1300,6 @@ public class TrendServiceImpl implements TrendService {
List
<
MainlineSchemeAnalysisVO
.
GreenwaveData
>
greenwaveData
)
{
Calendar
now
=
Calendar
.
getInstance
();
now
.
set
(
2024
,
Calendar
.
JANUARY
,
15
,
10
,
0
,
0
);
String
currentDayType
=
getDayType
(
now
);
String
currentTime
=
new
SimpleDateFormat
(
"HH:mm"
).
format
(
now
.
getTime
());
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment