@@ -35,18 +35,21 @@ public class 秒杀商品_自有新优惠券兑换 extends DuibaTestBase {
publicvoidbeforeMethod(){
try{
//秒杀
// jdbc.update("UPDATE tb_stock set stock = 100 where stock_id = 965636062781920123");//每次设置商品库存,防止售罄无法兑换
// jdbc.update("UPDATE tb_seckill_act_sku_data set sec_limit = 9999 where act_id = 25 and id = 14");//每次设置活动秒杀上限数,防止兑换达到上限无法兑换
// jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 25 and app_id =22563 and app_item_id=195538");
jdbc.update("UPDATE stock.tb_stock set stock = 100 where stock_id = 965676925749670068");//每次设置商品库存,防止售罄无法兑换
jdbc.update("UPDATE seckill.tb_seckill_act_sku_data set sec_limit = 9999 where act_id = 25 and id = 14");//每次设置活动秒杀上限数,防止兑换达到上限无法兑换
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 25 and app_id =22563 and app_item_id=195538");
//秒杀限制
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 17 and app_id =22563 and app_item_id=195468");
//sku上限
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 19 and app_id =22563 and app_item_id=195533");
//商品售罄
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 20 and app_id =22563 and app_item_id=195534");
Thread.sleep(2000);
}catch(SQLExceptione){
e.printStackTrace();
}catch(InterruptedExceptione){
e.printStackTrace();
}
}
...
...
@@ -62,6 +65,7 @@ public class 秒杀商品_自有新优惠券兑换 extends DuibaTestBase {
// jdbc.update("UPDATE tb_stock set stock = 100 where stock_id = 965636062781920123");//每次设置商品库存,防止售罄无法兑换
// jdbc.update("UPDATE tb_seckill_act_sku_data set sec_limit = 9999 where act_id = 26 and id = 15");//每次设置活动秒杀上限数,防止兑换达到上限无法兑换
// jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 26 and app_id =22563 and app_item_id=195539");
jdbc.update("UPDATE stock.tb_stock set stock = 100 where stock_id = 965677775095420125");//每次设置商品库存,防止售罄无法兑换
jdbc.update("UPDATE seckill.tb_seckill_act_sku_data set sec_limit = 9999 where act_id = 26 and id = 15");//每次设置活动秒杀上限数,防止兑换达到上限无法兑换
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 26 and app_id =22563 and app_item_id=195539");
//秒杀限制
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 23 and app_id =22563 and app_item_id=195536");
//sku上限
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 22 and app_id =22563 and app_item_id=195535");
//商品售罄
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 21 and app_id =22563 and app_item_id=195532");
Thread.sleep(2000);
}catch(SQLExceptione){
e.printStackTrace();
}
...
...
@@ -63,6 +63,7 @@ public class 秒杀商品_自有新商家充值兑换 extends DuibaTestBase {
@@ -37,18 +37,20 @@ public class 秒杀商品_自有新实物兑换 extends DuibaTestBase {
publicvoidbeforeMethod(){
try{
//正常秒杀
jdbc.update("UPDATE tb_stock set stock = 100 where stock_id = 965636062781920123");//每次设置商品库存,防止售罄无法兑换
jdbc.update("UPDATE tb_seckill_act_sku_data set sec_limit = 9999 where act_id = 24 and id = 13");//每次设置活动秒杀上限数,防止兑换达到上限无法兑换
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 13 and app_id =22563 and app_item_id=195537");
jdbc.update("UPDATE stock.tb_stock set stock = 100 where stock_id = 965636062781920123");//每次设置商品库存,防止售罄无法兑换
jdbc.update("UPDATE seckill.tb_seckill_act_sku_data set sec_limit = 9999 where act_id = 24 and id = 13");//每次设置活动秒杀上限数,防止兑换达到上限无法兑换
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 24 and app_id =22563 and app_item_id=195537");
//秒杀限制
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 13 and app_id =22563 and app_item_id=195387");
//sku上限
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 14 and app_id =22563 and app_item_id=195385");
//商品售罄
jdbc.update("UPDATE seckill.tb_seckill_act_conf set gmt_start = '"+starttime+"', gmt_end = '"+endtiem+"' WHERE id = 15 and app_id =22563 and app_item_id=195410");
Thread.sleep(2000);
}catch(SQLExceptione){
e.printStackTrace();
}catch(InterruptedExceptione){
e.printStackTrace();
}
}
...
...
@@ -64,6 +66,7 @@ public class 秒杀商品_自有新实物兑换 extends DuibaTestBase {