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
bbc60d56
Commit
bbc60d56
authored
Nov 08, 2023
by
hanbing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 修改绿波记录表结构
parent
960c5597
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
MainlineEvaluateServiceImpl.java
...t/wanji/opt/service/impl/MainlineEvaluateServiceImpl.java
+3
-3
GreenwaveHistMapper.xml
wj-databus/src/main/resources/mapper/GreenwaveHistMapper.xml
+2
-2
GreenwaveRealtimeMapper.xml
...bus/src/main/resources/mapper/GreenwaveRealtimeMapper.xml
+1
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/MainlineEvaluateServiceImpl.java
View file @
bbc60d56
...
...
@@ -702,7 +702,7 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
List
<
BaseCrossPlanPO
>
baseCrossPlanPOList
=
baseCrossPlanMapper
.
selectAll
();
for
(
GreenwaveHistPO
greenwaveHistPO
:
filteredList
)
{
Integer
histGreenwaveId
=
greenwaveHistPO
.
getId
();
Integer
histGreenwaveId
=
greenwaveHistPO
.
get
Green
Id
();
Date
histGreenwaveGmtModified
=
greenwaveHistPO
.
getGmtModified
();
for
(
GreenwaveCrossPO
greenwaveCrossPO
:
greenwaveCrossPOList
)
{
...
...
@@ -712,7 +712,7 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
histGreenwaveGmtModified
,
sectionId
,
baseCrossSectionPOList
,
baseCrossPlanPOList
);
if
(
greenwaveInSectionDTO
.
isGreenwaveInSection
())
{
String
greenwaveName
=
greenwaveHistPO
.
getGreenwaveName
();
Integer
greenwaveId
=
greenwaveHistPO
.
getId
();
Integer
greenwaveId
=
greenwaveHistPO
.
get
Green
Id
();
String
planName
=
greenwaveInSectionDTO
.
getPlanName
();
Integer
planId
=
greenwaveInSectionDTO
.
getPlanId
();
...
...
@@ -1881,7 +1881,7 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
if
(
greenwaveHistPOList
!=
null
)
{
for
(
GreenwaveHistPO
greenwaveHistPO
:
greenwaveHistPOList
)
{
if
(
greenwaveHistPO
!=
null
&&
Objects
.
equals
(
greenwaveHistPO
.
getId
(),
greenwaveId
)
&&
Objects
.
equals
(
greenwaveHistPO
.
get
Green
Id
(),
greenwaveId
)
&&
Objects
.
equals
(
greenwaveHistPO
.
getGmtModified
(),
gmtModified
))
{
return
key
;
}
...
...
wj-databus/src/main/resources/mapper/GreenwaveHistMapper.xml
View file @
bbc60d56
...
...
@@ -40,7 +40,7 @@
</select>
<select
id=
"selectByTimeSection"
resultType=
"net.wanji.databus.dao.entity.GreenwaveHistPO"
>
select t1.id,
select t1.
green_
id,
t1.status,
t1.type,
t1.traffic_index,
...
...
@@ -69,7 +69,7 @@
select
<include
refid=
"Base_Column_List"
/>
from t_greenwave_hist
where id = #{greenwaveId}
where
green_
id = #{greenwaveId}
and gmt_modified
<![CDATA[ <= ]]>
#{endTimeStr}
and gmt_modified
<![CDATA[ >= ]]>
#{startTimeStr}
</select>
...
...
wj-databus/src/main/resources/mapper/GreenwaveRealtimeMapper.xml
View file @
bbc60d56
...
...
@@ -32,7 +32,7 @@
select
<include
refid=
"Base_Column_List"
/>
from t_greenwave_realtime
where id = #{id}
where
green_
id = #{id}
</select>
<insert
id=
"insertBatch"
parameterType=
"net.wanji.databus.dao.entity.GreenwaveRealtimePO"
>
...
...
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