Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
wj-datacenter-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
wj-datacenter-platform
Commits
90f35b99
Commit
90f35b99
authored
Mar 28, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[add] 策略优化记录添加关联事件eventId
parent
bc7e92d7
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
0 deletions
+7
-0
ImbalanceAlgorithmDTO.java
.../net/wanji/datacenter/pojo/dto/ImbalanceAlgorithmDTO.java
+2
-0
PhaseEmptyDataDTO.java
...java/net/wanji/datacenter/pojo/dto/PhaseEmptyDataDTO.java
+1
-0
CrossStrategyResultEntity.java
...nji/datacenter/pojo/entity/CrossStrategyResultEntity.java
+2
-0
CrossStrategyOptServiceImpl.java
.../datacenter/service/impl/CrossStrategyOptServiceImpl.java
+2
-0
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/pojo/dto/ImbalanceAlgorithmDTO.java
View file @
90f35b99
...
...
@@ -62,6 +62,8 @@ public class ImbalanceAlgorithmDTO {
// 开始 = 1 结束 = -1
private
Integer
control_method
;
private
Integer
control_duration
;
@JsonProperty
(
"event_id"
)
private
String
eventId
;
@Data
@JsonIgnoreProperties
(
ignoreUnknown
=
true
)
...
...
wj-datacenter-service/src/main/java/net/wanji/datacenter/pojo/dto/PhaseEmptyDataDTO.java
View file @
90f35b99
...
...
@@ -41,5 +41,6 @@ public class PhaseEmptyDataDTO {
/** 响应内容 */
private
String
responseContent
;
private
Integer
isSuccessed
;
private
String
eventId
;
}
}
wj-datacenter-service/src/main/java/net/wanji/datacenter/pojo/entity/CrossStrategyResultEntity.java
View file @
90f35b99
...
...
@@ -63,4 +63,6 @@ public class CrossStrategyResultEntity {
private
Integer
dt
;
@TableField
(
"duration"
)
private
Integer
duration
;
@TableField
(
"event_id"
)
private
String
eventId
;
}
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/CrossStrategyOptServiceImpl.java
View file @
90f35b99
...
...
@@ -59,6 +59,7 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
entity
.
setInsertTime
(
new
Date
(
createStamp
));
entity
.
setCountDown
(
countDown
);
entity
.
setExtendTime
(
countDown
);
entity
.
setEventId
(
idx
.
getEventId
());
if
(
rtnType
<
0
)
{
if
(
Objects
.
nonNull
(
idx
.
getResponseCode
())
&&
!
Objects
.
equals
(-
1
,
idx
.
getResponseCode
()))
{
entity
.
setResponseCode
(
idx
.
getResponseCode
());
...
...
@@ -145,6 +146,7 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
crossStrategyResultEntity
.
setData
(
mapper
.
writeValueAsString
(
dto
.
getData
()));
crossStrategyResultEntity
.
setResponseContent
(
dto
.
getResponseContent
());
crossStrategyResultEntity
.
setDuration
(
dto
.
getControl_duration
());
crossStrategyResultEntity
.
setEventId
(
dto
.
getEventId
());
if
(
Objects
.
nonNull
(
issueTime
))
{
String
parse
=
DateUtil
.
format
(
issueTime
,
"yyyyMMdd"
);
crossStrategyResultEntity
.
setDt
(
Integer
.
valueOf
(
parse
));
...
...
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