Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-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
jinan
wj-datacenter-platform
Commits
ebdb551f
Commit
ebdb551f
authored
Mar 22, 2024
by
zhoushiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
5a0b1afd
d413b1e8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
CrossRidInfoCache.java
...in/java/net/wanji/datacenter/cache/CrossRidInfoCache.java
+1
-1
LanePeriodicDataProcessServiceImpl.java
...nter/service/impl/LanePeriodicDataProcessServiceImpl.java
+3
-2
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/cache/CrossRidInfoCache.java
View file @
ebdb551f
...
@@ -28,7 +28,7 @@ public class CrossRidInfoCache implements CommandLineRunner {
...
@@ -28,7 +28,7 @@ public class CrossRidInfoCache implements CommandLineRunner {
public
static
RidInfoEntity
getStartRidInfoEntity
(
String
startCrossId
,
Integer
inDir
)
{
public
static
RidInfoEntity
getStartRidInfoEntity
(
String
startCrossId
,
Integer
inDir
)
{
for
(
RidInfoEntity
ridInfoEntity
:
ridInfoEntityList
)
{
for
(
RidInfoEntity
ridInfoEntity
:
ridInfoEntityList
)
{
if
(
StringUtils
.
equalsIgnoreCase
(
startCrossId
,
ridInfoEntity
.
getStartCrossId
())
&&
Objects
.
equals
(
inDir
,
Integer
.
parseInt
(
ridInfoEntity
.
getId
()
)))
{
if
(
StringUtils
.
equalsIgnoreCase
(
startCrossId
,
ridInfoEntity
.
getStartCrossId
())
&&
Objects
.
equals
(
inDir
,
ridInfoEntity
.
getInDir
(
)))
{
return
ridInfoEntity
;
return
ridInfoEntity
;
}
}
}
}
...
...
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/LanePeriodicDataProcessServiceImpl.java
View file @
ebdb551f
...
@@ -663,9 +663,10 @@ public class LanePeriodicDataProcessServiceImpl implements DataProcessService {
...
@@ -663,9 +663,10 @@ public class LanePeriodicDataProcessServiceImpl implements DataProcessService {
greenwaveHistPOS
.
add
(
greenwaveHistPO
);
greenwaveHistPOS
.
add
(
greenwaveHistPO
);
greenwaveRealtimeMapper
.
deleteOne
(
greenWaveId
);
greenwaveRealtimeMapper
.
deleteOne
(
greenWaveId
);
}
}
}
if
(!
CollectionUtils
.
isEmpty
(
greenwaveHistPOS
))
{
greenwaveHistMapper
.
insertBatch
(
greenwaveHistPOS
);
greenwaveRealtimeMapper
.
insertBatch
(
greenwaveRealtimePOS
);
}
}
greenwaveHistMapper
.
insertBatch
(
greenwaveHistPOS
);
greenwaveRealtimeMapper
.
insertBatch
(
greenwaveRealtimePOS
);
}
}
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"插入绿波实时历史表失败:"
,
e
);
log
.
error
(
"插入绿波实时历史表失败:"
,
e
);
...
...
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