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");
//重置账户金额10000
jdbc.update("update consumer_accounts.tb_consumer_account_0011 set balance_amount ='10000' where account_id = '"+consumerId+"_6_0'");
}catch(Exceptione){
logger.info("数据后面置操作异常");
}
}
@Test
publicvoida_账户过期余额清零()throwsException{
Map<String,Object>sqlResult=jdbc.findSimpleResult("select * from consumer_account_log.tb_expire_consumer_account where account_id = '"+consumerId+"_6_0' ");
Map<String,Object>selectResult=jdbc.findSimpleResult("select * from consumer_accounts.tb_consumer_account_0011 where account_id = '"+consumerId+"_6_0' ");
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");