Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
peizhen-java
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PeiZhen-Java
peizhen-java
Commits
d5226b50
Commit
d5226b50
authored
Oct 18, 2023
by
邹磊浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改代码
parent
1ab82426
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
pz-admin/src/main/java/com/pz/web/task/InsertTestOrderTask.java
+2
-2
No files found.
pz-admin/src/main/java/com/pz/web/task/InsertTestOrderTask.java
View file @
d5226b50
...
@@ -78,11 +78,11 @@ public class InsertTestOrderTask {
...
@@ -78,11 +78,11 @@ public class InsertTestOrderTask {
for
(
Company
company
:
companies
)
{
for
(
Company
company
:
companies
)
{
Employees
employees
=
employeesMapper
.
selectOne
(
Wrappers
.<
Employees
>
lambdaQuery
().
eq
(
Employees:
:
getCompanyId
,
company
.
getId
()).
last
(
"limit 1"
));
Employees
employees
=
employeesMapper
.
selectOne
(
Wrappers
.<
Employees
>
lambdaQuery
().
eq
(
Employees:
:
getCompanyId
,
company
.
getId
()).
last
(
"limit 1"
));
executorService
.
submit
(()
->
{
executorService
.
submit
(()
->
{
List
<
Hospital
>
hospitals
=
hospitalMapper
.
selectList
(
Wrappers
.<
Hospital
>
lambdaQuery
().
eq
(
Hospital:
:
getCityId
,
employees
.
getCityId
()).
last
(
"limit 10"
));
List
<
Hospital
>
hospitals
=
hospitalMapper
.
selectList
(
Wrappers
.<
Hospital
>
lambdaQuery
().
eq
(
Hospital:
:
getCityId
,
company
.
getCityId
()).
last
(
"limit 10"
));
Hospital
hospital
=
getRandomElement
(
hospitals
);
Hospital
hospital
=
getRandomElement
(
hospitals
);
for
(
Integer
businessId
:
businessIds
)
{
for
(
Integer
businessId
:
businessIds
)
{
//获取服务价格
//获取服务价格
List
<
Services
>
services
=
servicesMapper
.
selectList
(
Wrappers
.<
Services
>
lambdaQuery
().
eq
(
Services:
:
getBid
,
businessId
).
eq
(
Services:
:
getCityId
,
employees
.
getCityId
()));
List
<
Services
>
services
=
servicesMapper
.
selectList
(
Wrappers
.<
Services
>
lambdaQuery
().
eq
(
Services:
:
getBid
,
businessId
).
eq
(
Services:
:
getCityId
,
company
.
getCityId
()));
// 每日单量
// 每日单量
Integer
num
=
RandomUtil
.
randomInt
(
4
,
10
);
Integer
num
=
RandomUtil
.
randomInt
(
4
,
10
);
for
(
int
i
=
0
;
i
<=
num
;
i
++)
{
for
(
int
i
=
0
;
i
<=
num
;
i
++)
{
...
...
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