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
6e5f763d
Commit
6e5f763d
authored
Jan 06, 2025
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 溢出优化responseCode返回
parent
68a4a66c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
CrossStrategyOptServiceImpl.java
.../datacenter/service/impl/CrossStrategyOptServiceImpl.java
+2
-1
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/CrossStrategyOptServiceImpl.java
View file @
6e5f763d
...
...
@@ -74,6 +74,7 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
public
void
save
(
ImbalanceAlgorithmDTO
dto
)
{
try
{
// 未操作的不存
// 溢出 rtnType=0 不操作 失衡未推送,目前只考虑溢出
if
(
0
!=
dto
.
getRtnType
())
{
ObjectMapper
mapper
=
JacksonUtils
.
getInstance
();
CrossStrategyResultEntity
crossStrategyResultEntity
=
new
CrossStrategyResultEntity
();
...
...
@@ -82,7 +83,7 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
crossStrategyResultEntity
.
setCurrentAlgo
(
dto
.
getCurrentAlgo
());
crossStrategyResultEntity
.
setRequestTime
(
dto
.
getRequestTime
());
crossStrategyResultEntity
.
setIssueTime
(
dto
.
getIssueTime
());
crossStrategyResultEntity
.
setResponseCode
(
dto
.
getCode
());
crossStrategyResultEntity
.
setResponseCode
(
dto
.
get
Response
Code
());
crossStrategyResultEntity
.
setTimingPlan
(
mapper
.
writeValueAsString
(
dto
.
getTimingPlan
()));
crossStrategyResultEntity
.
setInsertTime
(
dto
.
getInsertTime
());
crossStrategyResultEntity
.
setRtnType
(
dto
.
getRtnType
());
...
...
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