@@ -39,6 +39,8 @@ public class 账户异常提现 extends DuibaTestBase{
...
@@ -39,6 +39,8 @@ public class 账户异常提现 extends DuibaTestBase{
privatestaticStringconsumerId="100098000";
privatestaticStringconsumerId="100098000";
privatestaticintuid2=4460;
privatestaticintuid2=4460;
privatestaticStringconsumerId2="100098001";
privatestaticStringconsumerId2="100098001";
privatestaticintuid3=4461;
privatestaticStringconsumerId3="100098002";
@AfterClass
@AfterClass
publicvoidafterclass(){
publicvoidafterclass(){
try{
try{
...
@@ -49,9 +51,12 @@ public class 账户异常提现 extends DuibaTestBase{
...
@@ -49,9 +51,12 @@ public class 账户异常提现 extends DuibaTestBase{
hbaseService.updateHBASEKey(key,"","1");
hbaseService.updateHBASEKey(key,"","1");
Stringkey2="k01_AAWH_K003_"+y_m+"_"+consumerId2;
Stringkey2="k01_AAWH_K003_"+y_m+"_"+consumerId2;
hbaseService.updateHBASEKey(key2,"","1");
hbaseService.updateHBASEKey(key2,"","1");
Stringkey3="k01_AAWH_K003_"+y_m+"_"+consumerId3;
hbaseService.updateHBASEKey(key3,"","1");
// 修改账户过期时间,确保账户余额不会过期清零
// 修改账户过期时间,确保账户余额不会过期清零
jdbc.update("update consumer_account_log.tb_expire_consumer_account set gmt_modified ='"+getTime(0)+"' where account_id = '"+consumerId+"_6_0'");
jdbc.update("update consumer_account_log.tb_expire_consumer_account set gmt_modified ='"+getTime(0)+"' where account_id = '"+consumerId+"_6_0'");
jdbc.update("update consumer_account_log.tb_expire_consumer_account set gmt_modified ='"+getTime(0)+"' where account_id = '"+consumerId2+"_6_0'");
jdbc.update("update consumer_account_log.tb_expire_consumer_account set gmt_modified ='"+getTime(0)+"' where account_id = '"+consumerId2+"_6_0'");
jdbc.update("update consumer_account_log.tb_expire_consumer_account set gmt_modified ='"+getTime(0)+"' where account_id = '"+consumerId3+"_6_0'");
}catch(Exceptione){
}catch(Exceptione){
logger.info("数据后面置操作异常");
logger.info("数据后面置操作异常");
...
@@ -60,7 +65,7 @@ public class 账户异常提现 extends DuibaTestBase{
...
@@ -60,7 +65,7 @@ public class 账户异常提现 extends DuibaTestBase{
@Test
@Test
publicvoid红包账户余额不足()throwsException{
publicvoid用户账户余额不足()throwsException{
//获取原账户余额
//获取原账户余额
Map<String,Object>selectResult=jdbc.findSimpleResult("select * from consumer_accounts.tb_consumer_account_0976 where account_id = '"+consumerId+"_6_0' ");
Map<String,Object>selectResult=jdbc.findSimpleResult("select * from consumer_accounts.tb_consumer_account_0976 where account_id = '"+consumerId+"_6_0' ");
...
@@ -73,6 +78,7 @@ public class 账户异常提现 extends DuibaTestBase{
...
@@ -73,6 +78,7 @@ public class 账户异常提现 extends DuibaTestBase{
@@ -111,6 +117,34 @@ public class 账户异常提现 extends DuibaTestBase{
...
@@ -111,6 +117,34 @@ public class 账户异常提现 extends DuibaTestBase{
logger.info("用户账户余额校验成功");
logger.info("用户账户余额校验成功");
}
}
@Test
publicvoid开发者账户余额不足()throwsException{
//获取原账户余额
Map<String,Object>selectResult=jdbc.findSimpleResult("select * from consumer_accounts.tb_consumer_account_0978 where account_id = '"+consumerId3+"_6_0' ");