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
6e2aa69f
Commit
6e2aa69f
authored
Sep 05, 2024
by
xyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix储值卡的case
parent
e41ba509
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/main/java/com/xiaomai/cases/lunar/order/TestPurchaseByDeposit.java
+1
-1
src/main/java/com/xiaomai/cases/lunar/reserve/TestSingleReserveByDeposit.java
+1
-1
No files found.
src/main/java/com/xiaomai/cases/lunar/order/TestPurchaseByDeposit.java
View file @
6e2aa69f
...
@@ -67,7 +67,7 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
...
@@ -67,7 +67,7 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
String
price
=
XMJSONPath
.
readPath
(
orderCTools
.
findTenantCardDetailById
(
memberCardId
,
memberId
),
"$.result.price"
);
String
price
=
XMJSONPath
.
readPath
(
orderCTools
.
findTenantCardDetailById
(
memberCardId
,
memberId
),
"$.result.price"
);
//查询是否有可使用的储值卡,如果没有创建1张
//查询是否有可使用的储值卡,如果没有创建1张
int
num
=
XMJSONPath
.
getJSONArrayByReadPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList"
).
size
();
int
num
=
XMJSONPath
.
getJSONArrayByReadPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList"
).
size
();
if
(
num
>
0
){
if
(
num
>
1
){
for
(
int
i
=
0
;
i
<
num
-
1
;
i
++)
{
for
(
int
i
=
0
;
i
<
num
-
1
;
i
++)
{
String
leftBalance
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList["
+
i
+
"].depositBenefit.leftBalance"
);
String
leftBalance
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList["
+
i
+
"].depositBenefit.leftBalance"
);
//遍历储值卡的可用余额是否大于等于会员卡的价格
//遍历储值卡的可用余额是否大于等于会员卡的价格
...
...
src/main/java/com/xiaomai/cases/lunar/reserve/TestSingleReserveByDeposit.java
View file @
6e2aa69f
...
@@ -63,7 +63,7 @@ public class TestSingleReserveByDeposit extends BaseTestImpl {
...
@@ -63,7 +63,7 @@ public class TestSingleReserveByDeposit extends BaseTestImpl {
String
memberId
=
userTools
.
getMemberInfo
().
getString
(
"memberId"
);
String
memberId
=
userTools
.
getMemberInfo
().
getString
(
"memberId"
);
//查询是否有可使用的储值卡,如果没有创建1张
//查询是否有可使用的储值卡,如果没有创建1张
int
num
=
XMJSONPath
.
getJSONArrayByReadPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
"SINGLE_PAY_RESERVE"
),
"$.result.applicableList"
).
size
();
int
num
=
XMJSONPath
.
getJSONArrayByReadPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
"SINGLE_PAY_RESERVE"
),
"$.result.applicableList"
).
size
();
if
(
num
>
0
){
if
(
num
>
1
){
for
(
int
i
=
0
;
i
<
num
-
1
;
i
++)
{
for
(
int
i
=
0
;
i
<
num
-
1
;
i
++)
{
String
leftBalance
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
"SINGLE_PAY_RESERVE"
),
"$.result.applicableList["
+
i
+
"].depositBenefit.leftBalance"
);
String
leftBalance
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
"SINGLE_PAY_RESERVE"
),
"$.result.applicableList["
+
i
+
"].depositBenefit.leftBalance"
);
//遍历储值卡的可用余额是否大于等于私教课的价格
//遍历储值卡的可用余额是否大于等于私教课的价格
...
...
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