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
245c3eb4
Commit
245c3eb4
authored
Feb 12, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 策略优化添加操作用户
parent
bd8ac1a0
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
3 deletions
+16
-3
StrategyControlDataEntity.java
...t/wanji/opt/synthesis/pojo/StrategyControlDataEntity.java
+2
-0
StrategyControlDetailList.java
...t/wanji/opt/synthesis/pojo/StrategyControlDetailList.java
+1
-0
StrategyControlDataVO.java
...et/wanji/opt/synthesis/pojo/vo/StrategyControlDataVO.java
+2
-1
StrategyControlServiceImpl.java
...pt/synthesis/service/impl/StrategyControlServiceImpl.java
+4
-0
StrategyControlInfoMapper.xml
...e/src/main/resources/mapper/StrategyControlInfoMapper.xml
+7
-2
No files found.
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/pojo/StrategyControlDataEntity.java
View file @
245c3eb4
...
...
@@ -47,4 +47,6 @@ public class StrategyControlDataEntity extends PageVO {
private
String
wkt
;
@TableField
(
exist
=
false
)
private
String
optMethod
;
private
String
user
;
private
String
operation
;
}
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/pojo/StrategyControlDetailList.java
View file @
245c3eb4
...
...
@@ -14,6 +14,7 @@ import java.util.List;
@Data
public
class
StrategyControlDetailList
{
private
String
crossId
;
private
String
user
;
@NotEmpty
private
List
<
ExecutePlan
>
plans
;
@NotEmpty
...
...
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/pojo/vo/StrategyControlDataVO.java
View file @
245c3eb4
...
...
@@ -37,7 +37,8 @@ public class StrategyControlDataVO {
private
String
action
;
@ApiModelProperty
(
value
=
"模式1定时任务 2自适应"
)
private
Integer
model
;
private
String
user
;
private
String
operation
;
@Data
public
static
class
TimeTable
{
@ApiModelProperty
(
value
=
"星期周日至周六 0-6 7为每天不限时"
)
...
...
signal-optimize-service/src/main/java/net/wanji/opt/synthesis/service/impl/StrategyControlServiceImpl.java
View file @
245c3eb4
...
...
@@ -745,6 +745,8 @@ public class StrategyControlServiceImpl implements StrategyControlService {
strategyControlDataEntity
.
setTime
(
instance
.
writeValueAsString
(
datum
.
getTime_table
()));
strategyControlDataEntity
.
setFrequency
(
datum
.
getStrategy
());
strategyControlDataEntity
.
setStatus
(
datum
.
getStatus
());
strategyControlDataEntity
.
setUser
(
req
.
getUser
());
strategyControlDataEntity
.
setOperation
(
"手动"
);
strategyControlInfoMapper
.
insert
(
strategyControlDataEntity
);
}
...
...
@@ -802,6 +804,8 @@ public class StrategyControlServiceImpl implements StrategyControlService {
strategyControlDataEntity
.
setTime
(
instance
.
writeValueAsString
(
datum
.
getTime_table
()));
strategyControlDataEntity
.
setFrequency
(
datum
.
getStrategy
());
strategyControlDataEntity
.
setStatus
(
datum
.
getStatus
());
strategyControlDataEntity
.
setUser
(
req
.
getUser
());
strategyControlDataEntity
.
setOperation
(
"手动"
);
strategyControlInfoMapper
.
insert
(
strategyControlDataEntity
);
}
StrategyControlSwitchReq
switchReq
=
getSwitchReq
(
req
);
...
...
signal-optimize-service/src/main/resources/mapper/StrategyControlInfoMapper.xml
View file @
245c3eb4
...
...
@@ -14,7 +14,9 @@
schedule_end,
`time`,
frequency,
status
status,
user,
operation
) VALUES
<foreach
collection=
"list"
item=
"entity"
separator=
","
>
(#{entity.bizId},
...
...
@@ -24,7 +26,10 @@
#{entity.scheduleEnd},
#{entity.time},
#{entity.frequency},
#{entity.status})
#{entity.status},
#{entity.user},
#{entity.operation}
)
</foreach>
</insert>
</mapper>
\ No newline at end of file
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