* 查询库存 SELECT stock_id,id from tb_goods_batch where gtype = 6 and gid = 50 //gtype=6 表示卡密类型,gid 是卡密的id,查到的id是goods_batch_id
* 修改卡密为未使用状态:UPDATE tb_goods_coupon_0014 set status = 0 where goods_batch_id = 145835 //goods_batch_id为tb_goods_batch表中查到的id,tb_goods_coupon_0014 1024分表 卡密的id%1024
*/
...
...
@@ -56,6 +57,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple
jdbc.update("DELETE FROM credits_dev.consumer_limit_record_only where consumer_id = ?",consumerId);
jdbc.update("DELETE FROM goods.tb_everyday_limit where app_item_id=194594");
}catch(SQLExceptione){
e.printStackTrace();
}
...
...
@@ -390,6 +392,7 @@ public class 自有新卡密_兑换限制测试_ExchangeTest extends CheckTemple