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
13830c6d
Commit
13830c6d
authored
Aug 27, 2024
by
xyy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
2db1e7fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
src/main/java/com/xiaomai/cases/lunar/order/TestPurchaseByDeposit.java
+3
-2
No files found.
src/main/java/com/xiaomai/cases/lunar/order/TestPurchaseByDeposit.java
View file @
13830c6d
...
@@ -74,8 +74,6 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
...
@@ -74,8 +74,6 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
if
(
Double
.
parseDouble
(
leftBalance
)
>=
Double
.
parseDouble
(
price
))
{
if
(
Double
.
parseDouble
(
leftBalance
)
>=
Double
.
parseDouble
(
price
))
{
depositCardId
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList["
+
i
+
"].id"
);
depositCardId
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList["
+
i
+
"].id"
);
break
;
break
;
}
}
}
else
{
}
else
{
//切换B端校验
//切换B端校验
info
.
setTerminal
(
Terminal
.
B
);
info
.
setTerminal
(
Terminal
.
B
);
...
@@ -88,6 +86,7 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
...
@@ -88,6 +86,7 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
//获取C端第1张可使用的储值卡
//获取C端第1张可使用的储值卡
depositCardId
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList[0].id"
);
depositCardId
=
XMJSONPath
.
readPath
(
minCardTools
.
listUserUsableDepositCard
(
memberId
,
paymentScenario
),
"$.result.applicableList[0].id"
);
}
}
}
//查询要使用的储值卡消耗记录条数
//查询要使用的储值卡消耗记录条数
String
depositBenefitId
=
XMJSONPath
.
readPath
(
minCardTools
.
findMemberCardDetailById
(
depositCardId
),
"$.result.depositBenefit.id"
);
String
depositBenefitId
=
XMJSONPath
.
readPath
(
minCardTools
.
findMemberCardDetailById
(
depositCardId
),
"$.result.depositBenefit.id"
);
int
total
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
minCardTools
.
fetchPageOfConsumeRecord
(
depositCardId
,
depositBenefitId
),
"$.result.total"
));
int
total
=
Integer
.
parseInt
(
XMJSONPath
.
readPath
(
minCardTools
.
fetchPageOfConsumeRecord
(
depositCardId
,
depositBenefitId
),
"$.result.total"
));
...
@@ -131,4 +130,6 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
...
@@ -131,4 +130,6 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
orderTools
.
discard
(
voucherId
,
"其他"
,
"自动化作废订单"
,
info
);
orderTools
.
discard
(
voucherId
,
"其他"
,
"自动化作废订单"
,
info
);
}
}
}
}
}
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