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
fec43058
Commit
fec43058
authored
Mar 30, 2023
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 方案管理-方案下发日计划优化
parent
f643e783
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
2 deletions
+15
-2
PlanSendServiceImpl.java
.../java/net/wanji/web/service/impl/PlanSendServiceImpl.java
+3
-1
HKControlCommandServiceImpl.java
...utc/service/control/impl/HKControlCommandServiceImpl.java
+12
-1
No files found.
signal-control-service/src/main/java/net/wanji/web/service/impl/PlanSendServiceImpl.java
View file @
fec43058
...
...
@@ -106,9 +106,11 @@ public class PlanSendServiceImpl implements PlanSendService {
List
<
PlanSendVO
.
Plan
.
Section
>
sectionList
=
new
ArrayList
<>(
crossSectionPOS
.
size
());
for
(
CrossSectionPO
sectionPO
:
crossSectionPOS
)
{
Integer
schemeId
=
sectionPO
.
getSchemeId
();
CrossSchemePO
crossSchemePO
=
crossSchemeMapper
.
selectById
(
schemeId
);
String
patternNo
=
crossSchemePO
.
getSchemeNo
();
PlanSendVO
.
Plan
.
Section
section
=
new
PlanSendVO
.
Plan
.
Section
();
section
.
setSectionNo
(
sectionPO
.
getSectionNo
());
section
.
setPatternNo
(
String
.
valueOf
(
schemeId
)
);
section
.
setPatternNo
(
patternNo
);
section
.
setBeginTime
(
sectionPO
.
getStartTime
());
section
.
setEndTime
(
sectionPO
.
getEndTime
());
section
.
setControlMode
(
String
.
valueOf
(
sectionPO
.
getControlMode
()));
...
...
signal-utc-service/src/main/java/net/wanji/utc/service/control/impl/HKControlCommandServiceImpl.java
View file @
fec43058
...
...
@@ -23,8 +23,10 @@ import net.wanji.utc.po.ManufacturerInfoPO;
import
net.wanji.utc.po.hk.response.HKResponse
;
import
net.wanji.utc.service.control.ControlCommandService
;
import
net.wanji.utc.service.runninginfo.HkLightsStatusService
;
import
net.wanji.utc.service.runninginfo.impl.HkLightsStatusServiceImpl
;
import
net.wanji.utc.util.FieldUtil
;
import
net.wanji.utc.util.PathUtil
;
import
net.wanji.utc.util.StringUtils
;
import
net.wanji.utc.vo.*
;
import
org.springframework.stereotype.Service
;
import
org.springframework.util.CollectionUtils
;
...
...
@@ -127,7 +129,16 @@ public class HKControlCommandServiceImpl implements ControlCommandService {
DownloadTimeSpandsDTO
.
Data
.
Plan
.
Section
section1
=
new
DownloadTimeSpandsDTO
.
Data
.
Plan
.
Section
();
section1
.
setTimeSecNo
(
section
.
getSectionNo
());
section1
.
setPatternNo
(
section
.
getPatternNo
());
section1
.
setControlType
(
section
.
getControlMode
());
String
controtype
=
"4"
;
if
(
StringUtils
.
isNotBlank
(
section
.
getControlMode
())
&&
!
StringUtils
.
equals
(
"1"
,
section
.
getControlMode
()))
{
for
(
Map
.
Entry
<
String
,
String
>
item
:
HkLightsStatusServiceImpl
.
runModeParseMap
.
entrySet
())
{
if
(
StringUtils
.
equals
(
item
.
getValue
(),
section
.
getControlMode
()))
{
controtype
=
item
.
getKey
();
break
;
}
}
}
section1
.
setControlType
(
controtype
);
section1
.
setBeginTime
(
section
.
getBeginTime
());
sectionList
.
add
(
section1
);
});
...
...
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