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
75b39318
Commit
75b39318
authored
Dec 05, 2024
by
duanruiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update] 失衡入库数据优化
parent
ba6a778c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
CrossStrategyOptConsumerHandler.java
...nji/datacenter/kafka/CrossStrategyOptConsumerHandler.java
+2
-0
CrossStrategyOptServiceImpl.java
.../datacenter/service/impl/CrossStrategyOptServiceImpl.java
+1
-1
No files found.
wj-datacenter-service/src/main/java/net/wanji/datacenter/kafka/CrossStrategyOptConsumerHandler.java
View file @
75b39318
...
...
@@ -63,6 +63,8 @@ public class CrossStrategyOptConsumerHandler implements KafkaListenerErrorHandle
if
(
StringUtils
.
isNotBlank
(
message
))
{
ObjectMapper
mapper
=
JacksonUtils
.
getInstance
();
ImbalanceAlgorithmDTO
imbalanceAlgorithmDTO
=
mapper
.
readValue
(
message
,
ImbalanceAlgorithmDTO
.
class
);
// 设置3,优化方案
imbalanceAlgorithmDTO
.
setRtnType
(
3
);
crossStrategyOptService
.
save
(
imbalanceAlgorithmDTO
);
}
acknowledgment
.
acknowledge
();
...
...
wj-datacenter-service/src/main/java/net/wanji/datacenter/service/impl/CrossStrategyOptServiceImpl.java
View file @
75b39318
...
...
@@ -68,7 +68,7 @@ public class CrossStrategyOptServiceImpl implements CrossStrategyOptService {
public
void
save
(
ImbalanceAlgorithmDTO
dto
)
{
try
{
// 未操作的不存
if
(
!
Objects
.
equals
(
0
,
dto
.
getRtnType
()
))
{
if
(
0
!=
dto
.
getRtnType
(
))
{
ObjectMapper
mapper
=
JacksonUtils
.
getInstance
();
CrossStrategyResultEntity
crossStrategyResultEntity
=
new
CrossStrategyResultEntity
();
crossStrategyResultEntity
.
setCrossId
(
dto
.
getPlatformId
());
...
...
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