Commit f21d02b6 authored by 赵然's avatar 赵然

Merge branch 'develop' of gitlab2.dui88.com:mabo/test-platform into develop

parents dc3c09de 43a6f0d8
......@@ -267,13 +267,16 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase {
Long dbPostfix = Long.valueOf(consumerId)%b;
String dbName = null;
System.out.println(dbPostfix);
if (dbPostfix.intValue()<100){
dbName = dbPrex +"_00"+ dbPostfix;
}else if (dbPostfix.intValue()<1000){
dbName = dbPrex +"_0"+ dbPostfix;
}else {
dbName = dbPrex +"_"+ dbPostfix;
}
// if (dbPostfix.intValue()<100){
// dbName = dbPrex +"_00"+ dbPostfix;
// }else if (dbPostfix.intValue()<1000){
// dbName = dbPrex +"_0"+ dbPostfix;
// }else {
// dbName = dbPrex +"_"+ dbPostfix;
// }
String tag = String.format("%04d", Long.parseLong(consumerId) % 1024);
dbName = dbPrex +"_"+ tag;
logger.info("该用户的表名为:"+dbName);
return dbName;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment