Commit 0db55571 authored by 赵然's avatar 赵然

zr

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