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
b3dd7862
Commit
b3dd7862
authored
Dec 03, 2025
by
dujunli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
需求变更,完善接口参数变更
parent
2f4e051c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
6 deletions
+19
-6
src/main/java/com/xiaomai/cases/polar/reserve/ReserveTools.java
+19
-6
No files found.
src/main/java/com/xiaomai/cases/polar/reserve/ReserveTools.java
View file @
b3dd7862
...
@@ -12,6 +12,7 @@ import com.xiaomai.utils.XMJSONPath;
...
@@ -12,6 +12,7 @@ import com.xiaomai.utils.XMJSONPath;
import
org.apache.commons.lang3.StringUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.List
;
...
@@ -847,18 +848,24 @@ public class ReserveTools extends XMBaseTest {
...
@@ -847,18 +848,24 @@ public class ReserveTools extends XMBaseTest {
super
.
beforeDataRequest
();
super
.
beforeDataRequest
();
JSONObject
body
=
new
JSONObject
();
JSONObject
body
=
new
JSONObject
();
body
.
put
(
"weekdays"
,
weekdays
);
body
.
put
(
"courseId"
,
courseId
);
body
.
put
(
"courseId"
,
courseId
);
body
.
put
(
"coachId"
,
coachId
);
body
.
put
(
"coachId"
,
coachId
);
body
.
put
(
"startDate"
,
startDate
);
body
.
put
(
"startDate"
,
startDate
);
body
.
put
(
"endDate"
,
endDate
);
body
.
put
(
"endDate"
,
endDate
);
body
.
put
(
"leftCapacity"
,
leftCapacity
);
body
.
put
(
"leftCapacity"
,
leftCapacity
);
body
.
put
(
"minuteOffset"
,
minuteOffset
);
body
.
put
(
"spanMinutes"
,
spanMinutes
);
body
.
put
(
"pageSize"
,
12
);
body
.
put
(
"pageSize"
,
12
);
if
(!
StringUtils
.
isEmpty
(
areaId
)){
if
(!
StringUtils
.
isEmpty
(
areaId
)){
body
.
put
(
"areaId"
,
areaId
);
body
.
put
(
"areaId"
,
areaId
);
}
}
List
<
JSONObject
>
weekDayTimeRequests
=
new
ArrayList
<>();
JSONObject
weekDayTimeRequestObject
=
new
JSONObject
()
.
fluentPut
(
"minuteOffset"
,
minuteOffset
)
.
fluentPut
(
"spanMinutes"
,
spanMinutes
)
.
fluentPut
(
"weekdays"
,
weekdays
);
weekDayTimeRequests
.
add
(
weekDayTimeRequestObject
);
body
.
put
(
"weekDayTimeRequests"
,
weekDayTimeRequests
);
body
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
// 操作人id
body
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
// 操作人id
body
.
put
(
"studioId"
,
dataApi
.
getLoginInfo
().
getStudioId
());
body
.
put
(
"studioId"
,
dataApi
.
getLoginInfo
().
getStudioId
());
...
@@ -894,9 +901,15 @@ public class ReserveTools extends XMBaseTest {
...
@@ -894,9 +901,15 @@ public class ReserveTools extends XMBaseTest {
body
.
put
(
"coachId"
,
coachId
);
body
.
put
(
"coachId"
,
coachId
);
body
.
put
(
"memberId"
,
memberId
);
body
.
put
(
"memberId"
,
memberId
);
body
.
put
(
"benefitId"
,
benefitId
);
body
.
put
(
"benefitId"
,
benefitId
);
body
.
put
(
"reserveDayInfoList"
,
reserveDayInfoList
);
body
.
put
(
"minuteOffset"
,
minuteOffset
);
List
<
JSONObject
>
reserveTimeRequests
=
new
ArrayList
<>();
body
.
put
(
"spanMinutes"
,
spanMinutes
);
JSONObject
reserveTimeRequestObject
=
new
JSONObject
()
.
fluentPut
(
"minuteOffset"
,
minuteOffset
)
.
fluentPut
(
"spanMinutes"
,
spanMinutes
)
.
fluentPut
(
"reserveDayInfoList"
,
reserveDayInfoList
);
reserveTimeRequests
.
add
(
reserveTimeRequestObject
);
body
.
put
(
"reserveTimeRequests"
,
reserveTimeRequests
);
body
.
put
(
"reserveMemberNum"
,
reserveMemberNum
);
body
.
put
(
"reserveMemberNum"
,
reserveMemberNum
);
body
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"brandId"
,
dataApi
.
getLoginInfo
().
getBrandId
());
body
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
body
.
put
(
"operatorId"
,
dataApi
.
getLoginInfo
().
getAdminId
());
...
...
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