Commit 43a6f0d8 authored by 钱雯君's avatar 钱雯君

add

parent 9204fc49
...@@ -267,13 +267,16 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase { ...@@ -267,13 +267,16 @@ public class 新集卡_助力发集卡_DuibaTest extends DuibaTestBase {
Long dbPostfix = Long.valueOf(consumerId)%b; Long dbPostfix = Long.valueOf(consumerId)%b;
String dbName = null; String dbName = null;
System.out.println(dbPostfix); System.out.println(dbPostfix);
if (dbPostfix.intValue()<100){ // if (dbPostfix.intValue()<100){
dbName = dbPrex +"_00"+ dbPostfix; // dbName = dbPrex +"_00"+ dbPostfix;
}else if (dbPostfix.intValue()<1000){ // }else if (dbPostfix.intValue()<1000){
dbName = dbPrex +"_0"+ dbPostfix; // dbName = dbPrex +"_0"+ dbPostfix;
}else { // }else {
dbName = dbPrex +"_"+ dbPostfix; // dbName = dbPrex +"_"+ dbPostfix;
} // }
String tag = String.format("%04d", Long.parseLong(consumerId) % 1024);
dbName = dbPrex +"_"+ tag;
logger.info("该用户的表名为:"+dbName); logger.info("该用户的表名为:"+dbName);
return 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