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
f060e55d
Commit
f060e55d
authored
Mar 14, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 信控路口修改逻辑:非信控路口,默认关闭优化和下发
parent
eeaf3311
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
CrossInfoService.java
...src/main/java/net/wanji/web/service/CrossInfoService.java
+5
-0
No files found.
signal-control-service/src/main/java/net/wanji/web/service/CrossInfoService.java
View file @
f060e55d
...
...
@@ -88,6 +88,11 @@ public class CrossInfoService {
public
JsonViewObject
updateOne
(
BaseCrossInfoVO
crossInfoPO
)
{
TBaseCrossInfo
record
=
new
TBaseCrossInfo
();
BeanUtils
.
copyProperties
(
crossInfoPO
,
record
);
// 如果不是信控路口,关闭优化和下发方案开关
if
(
crossInfoPO
.
getIsSignal
()
==
0
)
{
record
.
setIsStart
(
0
);
record
.
setIsSend
(
0
);
}
record
.
setGmtModified
(
new
Date
());
int
update
=
crossInfoMapper
.
updateByPrimaryKeySelective
(
record
);
if
(
update
>
0
)
{
...
...
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