Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
X
xm-sportstest
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
xiamai-test
xm-sportstest
Commits
fe182be9
Commit
fe182be9
authored
Aug 22, 2024
by
xuyamei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解决报错,增加编辑课次人数后延时
parent
c5538e42
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/main/java/com/xiaomai/cases/polar/reserve/group/TestAddMemberReserve.java
+7
-2
No files found.
src/main/java/com/xiaomai/cases/polar/reserve/group/TestAddMemberReserve.java
View file @
fe182be9
...
@@ -231,8 +231,9 @@ public class TestAddMemberReserve extends BaseTestImpl {
...
@@ -231,8 +231,9 @@ public class TestAddMemberReserve extends BaseTestImpl {
public
void
testAddMemberReserve3
(){
public
void
testAddMemberReserve3
(){
// 修改课次人数上限为1
// 修改课次人数上限为1
groupScheduleTools
.
editGroupSchedule
(
scheduleId
,
startTime
,
xmAppApi
.
getLoginInfo
().
getAdminId
(),
1
,
1
);
groupScheduleTools
.
editGroupSchedule
(
scheduleId
,
startTime
,
xmAppApi
.
getLoginInfo
().
getAdminId
(),
1
,
1
);
try
{
try
{
Thread
.
sleep
(
2
000
);
Thread
.
sleep
(
3
000
);
}
catch
(
InterruptedException
e
)
{
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
throw
new
RuntimeException
(
e
);
}
}
...
@@ -242,7 +243,11 @@ public class TestAddMemberReserve extends BaseTestImpl {
...
@@ -242,7 +243,11 @@ public class TestAddMemberReserve extends BaseTestImpl {
Random
random
=
new
Random
();
Random
random
=
new
Random
();
int
bookingSeatCount
=
random
.
nextInt
(
10
)+
1
;
// 席位
int
bookingSeatCount
=
random
.
nextInt
(
10
)+
1
;
// 席位
ruleTools
.
saveGroupBookingRules
(
id
,
false
,
bookingSeatCount
,
true
,
true
,
random
.
nextInt
(
30
)+
10
,
true
,
random
.
nextInt
(
100
)+
10
,
random
.
nextInt
(
5
)+
1
,
true
,
random
.
nextInt
(
100
)+
10
,
"minutes"
,
true
,
random
.
nextInt
(
100
)+
10
,
"minutes"
);
ruleTools
.
saveGroupBookingRules
(
id
,
false
,
bookingSeatCount
,
true
,
true
,
random
.
nextInt
(
30
)+
10
,
true
,
random
.
nextInt
(
100
)+
10
,
random
.
nextInt
(
5
)+
1
,
true
,
random
.
nextInt
(
100
)+
10
,
"minutes"
,
true
,
random
.
nextInt
(
100
)+
10
,
"minutes"
);
try
{
Thread
.
sleep
(
2000
);
}
catch
(
InterruptedException
e
)
{
throw
new
RuntimeException
(
e
);
}
// 新学员 购买卡
// 新学员 购买卡
String
memberId2
=
""
;
String
memberId2
=
""
;
// 查询存量的学员没有则创建学员
// 查询存量的学员没有则创建学员
...
...
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