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
bf8ffaab
Commit
bf8ffaab
authored
Jun 28, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 上载相位优化
parent
46a71ee9
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
WanJiCommonStaticInfoServiceImpl.java
...ice/staticinfo/impl/WanJiCommonStaticInfoServiceImpl.java
+1
-1
CrossPhaseMapper.xml
wj-databus/src/main/resources/mapper/CrossPhaseMapper.xml
+8
-1
No files found.
signal-utc-service/src/main/java/net/wanji/utc/service/staticinfo/impl/WanJiCommonStaticInfoServiceImpl.java
View file @
bf8ffaab
...
...
@@ -60,8 +60,8 @@ public class WanJiCommonStaticInfoServiceImpl implements WanJiCommonStaticInfoSe
crossSchemeMapper
.
insertOne
(
crossSchemePO
);
});
List
<
CrossPhasePO
>
crossPhaseList
=
content
.
getCrossPhaseList
();
crossPhaseMapper
.
deleteBatch
(
crossId
,
null
);
crossPhaseList
.
forEach
(
crossPhasePO
->
{
crossPhaseMapper
.
deleteBatch
(
crossId
,
crossPhasePO
.
getPlanId
());
crossPhaseMapper
.
insertOne
(
crossPhasePO
);
});
...
...
wj-databus/src/main/resources/mapper/CrossPhaseMapper.xml
View file @
bf8ffaab
...
...
@@ -40,7 +40,14 @@
<delete
id=
"deleteBatch"
>
delete from t_cross_phase
where cross_id = #{crossId} and plan_id = #{schemeId}
<where>
<if
test=
"crossId != null and crossId != ''"
>
and cross_id = #{crossId}
</if>
<if
test=
"schemeId != null and schemeId != ''"
>
and plan_id = #{schemeId}
</if>
</where>
</delete>
<delete
id=
"deleteByCrossId"
>
...
...
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