Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
haoban3.0
haoban-manage3.0
Commits
a5a6b7fb
Commit
a5a6b7fb
authored
May 15, 2025
by
王祖波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新数据
parent
e0c2551b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
InteractRecordTest.java
haoban-manage3-service/src/test/java/InteractRecordTest.java
+9
-2
No files found.
haoban-manage3-service/src/test/java/InteractRecordTest.java
View file @
a5a6b7fb
...
...
@@ -40,6 +40,9 @@ import org.springframework.test.context.ContextConfiguration;
import
org.springframework.test.context.junit4.SpringJUnit4ClassRunner
;
import
java.util.*
;
import
java.util.concurrent.ExecutorService
;
import
java.util.concurrent.Executors
;
import
java.util.concurrent.TimeUnit
;
/**
* @Author MUSI
...
...
@@ -133,7 +136,8 @@ public class InteractRecordTest {
}
@Test
public
void
fixOrderChannelCode
()
{
public
void
fixOrderChannelCode
()
throws
Exception
{
ExecutorService
executorService
=
Executors
.
newFixedThreadPool
(
10
);
InteractRecordQO
interactRecordQO
=
new
InteractRecordQO
();
interactRecordQO
.
setPageNum
(
1
);
interactRecordQO
.
setPageSize
(
100000
);
...
...
@@ -143,9 +147,10 @@ public class InteractRecordTest {
Page
<
InteractRecordBO
>
interactRecordBOPage
=
interactRecordService
.
queryInteractRecordPage
(
interactRecordQO
);
List
<
InteractRecordBO
>
result
=
interactRecordBOPage
.
getResult
();
for
(
InteractRecordBO
interactRecordBO
:
result
)
{
executorService
.
execute
(()->{
InteractRecordExtendInfoBO
extendInfo
=
interactRecordBO
.
getExtendInfo
();
if
(
extendInfo
==
null
)
{
continue
;
return
;
}
List
<
InteractRecordExtendInfoBO
.
ExtendOrderInfo
>
extendOrderInfos
=
extendInfo
.
getExtendOrderInfos
();
for
(
InteractRecordExtendInfoBO
.
ExtendOrderInfo
extendOrderInfo
:
extendOrderInfos
)
{
...
...
@@ -183,6 +188,8 @@ public class InteractRecordTest {
update
.
setId
(
interactRecordBO
.
getId
());
update
.
setExtendInfo
(
extendInfo
);
interactRecordService
.
saveOrUpdateInteractRecord
(
update
);
});
}
executorService
.
awaitTermination
(
10
,
TimeUnit
.
HOURS
);
}
}
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