Commit 13830c6d by xyy

fix

parent 2db1e7fd
......@@ -74,8 +74,6 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
if (Double.parseDouble(leftBalance) >= Double.parseDouble(price)) {
depositCardId = XMJSONPath.readPath(minCardTools.listUserUsableDepositCard(memberId, paymentScenario), "$.result.applicableList[" + i + "].id");
break;
}
}
}else{
//切换B端校验
info.setTerminal(Terminal.B);
......@@ -88,6 +86,7 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
//获取C端第1张可使用的储值卡
depositCardId = XMJSONPath.readPath(minCardTools.listUserUsableDepositCard(memberId, paymentScenario), "$.result.applicableList[0].id");
}
}
//查询要使用的储值卡消耗记录条数
String depositBenefitId = XMJSONPath.readPath(minCardTools.findMemberCardDetailById(depositCardId),"$.result.depositBenefit.id");
int total = Integer.parseInt(XMJSONPath.readPath(minCardTools.fetchPageOfConsumeRecord(depositCardId,depositBenefitId),"$.result.total"));
......@@ -131,4 +130,6 @@ public class TestPurchaseByDeposit extends BaseTestImpl {
orderTools.discard(voucherId,"其他","自动化作废订单",info);
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment