Commit 5ff24184 authored by 赵然's avatar 赵然

zr

parent cf1d9cce
......@@ -33,7 +33,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
public void 出奖自有实物() throws Exception {
Map map = jdbc.findSimpleResult("select * from stock.tb_stock where stock_id = 674900849714500524");
long remaining = (long)map.get("stock");
int remaining = (int)map.get("stock");
Response response = newActivityService.doJoin2("21803","h5ps61");
String orderId = response.jsonPath().getString("orderId");
response = newActivityService.getOrderStatus2(orderId);
......@@ -61,7 +61,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread.sleep(1000);
map = jdbc.findSimpleResult("select * from stock.tb_stock where stock_id = 674900849714500524");
long remainingNew = (long)map.get("stock");
int remainingNew = (int)map.get("stock");
Assert.assertEquals(remaining-1,remainingNew,"扣库存失败");
......@@ -170,7 +170,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
public void 出奖自有虚拟商品() throws Exception {
Map map = jdbc.findSimpleResult("select * from stock.tb_stock where stock_id = 674900860200070105");
long remaining = (long)map.get("stock");
int remaining = (int)map.get("stock");
Response response = newActivityService.doJoin2("21793","h5ps61");
String orderId = response.jsonPath().getString("orderId");
response = newActivityService.getOrderStatus2(orderId);
......@@ -198,7 +198,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread.sleep(1000);
map = jdbc.findSimpleResult("select * from stock.tb_stock where stock_id = 674900860200070105");
long remainingNew = (long)map.get("stock");
int remainingNew = (int)map.get("stock");
Assert.assertEquals(remaining-1,remainingNew,"扣库存失败");
}
......@@ -206,7 +206,7 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
@Test
public void 出奖兑吧实物() throws Exception {
Map map = jdbc.findSimpleResult("select * from stock.tb_stock where stock_id = 674900440770170322 ");
long remaining = (long)map.get("stock");
int remaining = (int)map.get("stock");
Response response = newActivityService.doJoin2("22637","h5ps61");
String orderId = response.jsonPath().getString("orderId");
response = newActivityService.getOrderStatus2(orderId);
......@@ -233,12 +233,10 @@ public class 自有活动出奖_DuibaTest extends DuibaTestBase {
Thread.sleep(1000);
map = jdbc.findSimpleResult("select * from stock.tb_stock where stock_id = 674900440770170322 ");
long remainingNew = (long)map.get("stock");
int remainingNew = (int)map.get("stock");
Assert.assertEquals(remaining-1,remainingNew,"扣库存失败");
}
@Test
......
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