jdbc.update("update consumer_account_log.tb_expire_consumer_account set gmt_modified ='"+getTime(-1)+"' where account_id = '"+consumerId+"_6_0'");
//删除过期记录
jdbc.update("delete from consumer_account_log.tb_consumer_accounts_log where account_id = '"+consumerId+"_6_0' and biz_type='10'");
//删除自动化充值记录
jdbc.update("delete from consumer_account_log.tb_consumer_accounts_log where account_id = '"+consumerId+"_6_0' and biz_type='19'");
Map<String,Object>sqlResult=jdbc.findSimpleResult("select * from consumer_account_log.tb_expire_consumer_account where account_id = '"+consumerId+"_6_0' ");
@@ -86,39 +91,67 @@ public class 账户余额清零 extends DuibaTestBase {
}
@Test
@Test(description="过期日前账户余额>0")
publicvoidb_扣款明细校验()throwsException{
//获取数据库扣款记录
Map<String,Object>selectResult=jdbc.findSimpleResult("select * from consumer_account_log.tb_consumer_accounts_log where account_id = '"+consumerId+"_6_0' and biz_type=10");
jdbc.update("update consumer_account_log.tb_expire_consumer_account set gmt_modified ='"+getTime(-1)+"' where account_id = '"+consumerId2+"_6_0'");
Map<String,Object>sqlResult=jdbc.findSimpleResult("select * from consumer_account_log.tb_expire_consumer_account where account_id = '"+consumerId2+"_6_0' ");
Map<String,Object>selectResult=jdbc.findSimpleResult("select * from consumer_accounts.tb_consumer_account_0972 where account_id = '"+consumerId2+"_6_0' ");