Commit 6de6baa0 authored by 吕雯燕's avatar 吕雯燕

lv

parent 2d8f4211
...@@ -85,7 +85,7 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -85,7 +85,7 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet {
public void 平台券扣积分和库存测试() throws Exception { public void 平台券扣积分和库存测试() throws Exception {
//查询平台券兑换前的库存和积分 //查询平台券兑换前的库存和积分
Map<String,Object> mapStock = jdbc.findSimpleResult("SELECT * FROM stock.tb_stock WHERE stock_id =737253124770670925"); Map<String,Object> mapStock = jdbc.findSimpleResult("SELECT * FROM stock.tb_stock WHERE stock_id =1295322534088420925");
String stock = String.valueOf(mapStock.get("stock")) ; String stock = String.valueOf(mapStock.get("stock")) ;
logger.info("兑换前的平台券库存:" + stock); logger.info("兑换前的平台券库存:" + stock);
stock = String.valueOf(Integer.parseInt(stock) - 1) ; stock = String.valueOf(Integer.parseInt(stock) - 1) ;
...@@ -100,7 +100,7 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -100,7 +100,7 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet {
logger.info("订单号:" + orderId); logger.info("订单号:" + orderId);
//查询优惠券兑换后的库存和积分 //查询优惠券兑换后的库存和积分
mapStock = jdbc.findSimpleResult("SELECT * FROM stock.tb_stock WHERE stock_id =737253124770670925"); mapStock = jdbc.findSimpleResult("SELECT * FROM stock.tb_stock WHERE stock_id =1295322534088420925");
String stockNew = String.valueOf(mapStock.get("stock")) ; String stockNew = String.valueOf(mapStock.get("stock")) ;
logger.info("兑换后的优惠券库存:" + stockNew); logger.info("兑换后的优惠券库存:" + stockNew);
...@@ -285,7 +285,7 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet { ...@@ -285,7 +285,7 @@ public class 平台券_兑换流程测试_ExchangeTest extends CheckTemplet {
map.put("pcgId","74371944595109"); map.put("pcgId","74371944595109");
map.put("token","yrJRr7Cddp2YeQd"); map.put("token","yrJRr7Cddp2YeQd");
//获取按钮状态 //获取按钮状态
Response detailResponse = appPlatformCouponService.platformDetail(uid,"74371944595109"); Response detailResponse = appPlatformCouponService.platformDetail(uid,"74371944595109");
detailResponse.prettyPrint(); detailResponse.prettyPrint();
String exchangeText = MatcherString.getString(detailResponse.asString(),"exchangeText: '(.*?)',",1); String exchangeText = MatcherString.getString(detailResponse.asString(),"exchangeText: '(.*?)',",1);
......
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