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
jinan
traffic-signal-platform
Commits
f3732b5c
Commit
f3732b5c
authored
Apr 21, 2025
by
zhoushiguang
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
afc6ff71
fd841aec
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
163 additions
and
91 deletions
+163
-91
StrategyPriorityServiceImpl.java
.../servicev2/strategy/impl/StrategyPriorityServiceImpl.java
+152
-82
PushStrategyControlService.java
...nji/opt/synthesis/service/PushStrategyControlService.java
+2
-2
PushStrategyControlServiceImpl.java
...ynthesis/service/impl/PushStrategyControlServiceImpl.java
+6
-6
AnalysisProblemGreenHourMapper.xml
...s/mapper/judgeanalysis/AnalysisProblemGreenHourMapper.xml
+2
-0
CrossProblemMapper.xml
...e/src/main/resources/mapper/report/CrossProblemMapper.xml
+1
-1
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/servicev2/strategy/impl/StrategyPriorityServiceImpl.java
View file @
f3732b5c
This diff is collapsed.
Click to expand it.
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/service/PushStrategyControlService.java
View file @
f3732b5c
...
...
@@ -44,7 +44,7 @@ public interface PushStrategyControlService {
* @return
* @throws Exception
*/
Result
StartegyPriorityPlanPush
(
StrategyPriorityPlanPush
req
)
throws
Exception
;
Result
StartegyPriorityPlanPush
(
List
<
StrategyPriorityPlanPush
>
req
)
throws
Exception
;
/**
* 策略管理参数配置推送
...
...
@@ -52,6 +52,6 @@ public interface PushStrategyControlService {
* @return
* @throws Exception
*/
Result
StartegyPriorityParameterPush
(
StrategyParameterPush
req
)
throws
Exception
;
Result
StartegyPriorityParameterPush
(
List
<
StrategyParameterPush
>
req
)
throws
Exception
;
}
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/service/impl/PushStrategyControlServiceImpl.java
View file @
f3732b5c
...
...
@@ -101,13 +101,13 @@ public class PushStrategyControlServiceImpl implements PushStrategyControlServic
* 日计划配置推送
* */
@Override
public
Result
StartegyPriorityPlanPush
(
StrategyPriorityPlanPush
req
)
throws
Exception
{
public
Result
StartegyPriorityPlanPush
(
List
<
StrategyPriorityPlanPush
>
req
)
throws
Exception
{
try
{
ObjectMapper
mapper
=
JacksonUtils
.
getInstance
();
System
.
out
.
println
(
"req~~"
+
req
);
// 序列化请求参数
String
jsonReq
=
mapper
.
writeValueAsString
(
req
);
String
resultStr
=
RestTemplateTool
.
post
(
switchUrl
,
jsonReq
);
System
.
out
.
println
(
"req~~"
+
jsonReq
);
String
resultStr
=
RestTemplateTool
.
postList
(
switchUrl
,
jsonReq
);
if
(
StringUtils
.
isNotBlank
(
resultStr
))
{
log
.
info
(
"下发神思策略管理日计划配置推送成功,内容: {}"
,
req
);
Result
result
=
mapper
.
readValue
(
resultStr
,
Result
.
class
);
...
...
@@ -129,13 +129,13 @@ public class PushStrategyControlServiceImpl implements PushStrategyControlServic
* @throws Exception
*/
@Override
public
Result
StartegyPriorityParameterPush
(
StrategyParameterPush
req
)
throws
Exception
{
public
Result
StartegyPriorityParameterPush
(
List
<
StrategyParameterPush
>
req
)
throws
Exception
{
try
{
ObjectMapper
mapper
=
JacksonUtils
.
getInstance
();
System
.
out
.
println
(
"req~~"
+
req
);
// 序列化请求参数
String
jsonReq
=
mapper
.
writeValueAsString
(
req
);
String
resultStr
=
RestTemplateTool
.
post
(
switchUrl
,
jsonReq
);
System
.
out
.
println
(
"req~~"
+
jsonReq
);
String
resultStr
=
RestTemplateTool
.
postList
(
switchUrl
,
jsonReq
);
if
(
StringUtils
.
isNotBlank
(
resultStr
))
{
log
.
info
(
"下发神思策略管理参数配置推送成功,内容: {}"
,
req
);
Result
result
=
mapper
.
readValue
(
resultStr
,
Result
.
class
);
...
...
signal-optimize-service/src/main/resources/mapper/judgeanalysis/AnalysisProblemGreenHourMapper.xml
View file @
f3732b5c
...
...
@@ -285,11 +285,13 @@
JOIN t_base_rid_info t3
ON sub_t2.cross_id=t3.end_cross_id
AND sub_t2.dir_type=t3.in_dir
AND t1.in_dir=t3.in_dir
WHERE
1=1
<if
test=
"greenId!=null and greenId!=''"
>
AND t1.green_id=#{greenId}
</if>
and t1.sort!=1
ORDER BY
sub_t2.traffic_index DESC
limit 1
...
...
signal-optimize-service/src/main/resources/mapper/report/CrossProblemMapper.xml
View file @
f3732b5c
...
...
@@ -52,7 +52,7 @@
and year_week = #{yearWeek}
</if>
<if
test=
"crossIdList != null"
>
and
t4.
cross_id in
and cross_id in
<foreach
collection=
"crossIdList"
item=
"crossId"
open=
"("
close=
")"
separator=
","
>
#{crossId}
</foreach>
...
...
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