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
7bc359e4
Commit
7bc359e4
authored
Feb 27, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 优化异常处理,前端报下标越界问题
parent
861c70bd
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
34 deletions
+40
-34
MainlineEvaluateServiceImpl.java
...t/wanji/opt/service/impl/MainlineEvaluateServiceImpl.java
+40
-34
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/service/impl/MainlineEvaluateServiceImpl.java
View file @
7bc359e4
...
@@ -657,6 +657,8 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
...
@@ -657,6 +657,8 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
@Override
@Override
public
MainlineSchemeAnalysisVO
mainlineSchemeAnalysis
(
MainlineSchemeAnalysisBO
bo
)
throws
Exception
{
public
MainlineSchemeAnalysisVO
mainlineSchemeAnalysis
(
MainlineSchemeAnalysisBO
bo
)
throws
Exception
{
MainlineSchemeAnalysisVO
res
=
null
;
try
{
lineSchemeBuffer
.
clear
();
lineSchemeBuffer
.
clear
();
String
mainlineName
=
bo
.
getName
();
String
mainlineName
=
bo
.
getName
();
Date
boStartTime
=
bo
.
getStartTime
();
Date
boStartTime
=
bo
.
getStartTime
();
...
@@ -681,7 +683,7 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
...
@@ -681,7 +683,7 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
})
})
.
collect
(
Collectors
.
toList
());
.
collect
(
Collectors
.
toList
());
MainlineSchemeAnalysisVO
res
=
new
MainlineSchemeAnalysisVO
();
res
=
new
MainlineSchemeAnalysisVO
();
fillLineSchemeBuffer
(
filteredList
,
lineSchemeBuffer
);
fillLineSchemeBuffer
(
filteredList
,
lineSchemeBuffer
);
// 时段合并
// 时段合并
GreenwaveMergePO
greenwaveMergePO
=
greenwaveMergeMapper
.
selectByMainlineName
(
mainlineName
);
GreenwaveMergePO
greenwaveMergePO
=
greenwaveMergeMapper
.
selectByMainlineName
(
mainlineName
);
...
@@ -693,6 +695,10 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
...
@@ -693,6 +695,10 @@ public class MainlineEvaluateServiceImpl implements MainlineEvaluateService {
filteredList
,
lineSchemeBuffer
,
boStartTimeStamp
,
boEndTimeStamp
,
boStartTime
,
boEndTime
));
filteredList
,
lineSchemeBuffer
,
boStartTimeStamp
,
boEndTimeStamp
,
boStartTime
,
boEndTime
));
res
.
setGreenwaveData
(
buildGreenwaveData
(
lineSchemeBuffer
));
res
.
setGreenwaveData
(
buildGreenwaveData
(
lineSchemeBuffer
));
res
.
setCrossData
(
calcCrossData
(
lineSchemeBuffer
));
res
.
setCrossData
(
calcCrossData
(
lineSchemeBuffer
));
}
catch
(
Exception
e
)
{
log
.
error
(
"干线方案分析执行异常:"
,
e
);
throw
new
Exception
(
e
);
}
return
res
;
return
res
;
}
}
...
...
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