Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
test-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
马博
test-platform
Commits
43a6f0d8
Commit
43a6f0d8
authored
Nov 02, 2018
by
钱雯君
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add
parent
9204fc49
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
7 deletions
+10
-7
新集卡_助力发集卡_DuibaTest.java
...ttp/cases/NewCollectActivityTest/新集卡_助力发集卡_DuibaTest.java
+10
-7
No files found.
src/test/java/http/cases/NewCollectActivityTest/新集卡_助力发集卡_DuibaTest.java
View file @
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
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment