Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppTag
Project
Overview
Details
Activity
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
dataplatform
AppTag
Commits
161a1702
Commit
161a1702
authored
5 years ago
by
jinfeng.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
6ff13b0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
GetPackageFromAdxFile.java
...java/com/mobvista/apptag/utils/GetPackageFromAdxFile.java
+2
-2
MySqlUtil.java
src/main/java/com/mobvista/apptag/utils/MySqlUtil.java
+1
-1
No files found.
src/main/java/com/mobvista/apptag/utils/GetPackageFromAdxFile.java
View file @
161a1702
...
...
@@ -28,8 +28,8 @@ public class GetPackageFromAdxFile {
}
Set
<
String
>
set
=
readTxtFileIntoStringSet
(
filePath
);
System
.
out
.
println
(
"packageNames.size ===>>> "
+
set
.
size
());
//
MySqlUtil mySqlUtil = new MySqlUtil();
//
mySqlUtil.insert(set);
MySqlUtil
mySqlUtil
=
new
MySqlUtil
();
mySqlUtil
.
insert
(
set
);
}
catch
(
Exception
e
)
{
System
.
err
.
println
(
e
.
getClass
().
getName
()
+
": "
+
e
.
getMessage
());
}
...
...
This diff is collapsed.
Click to expand it.
src/main/java/com/mobvista/apptag/utils/MySqlUtil.java
View file @
161a1702
...
...
@@ -38,7 +38,7 @@ public class MySqlUtil {
packageName
=
packageName
.
replace
(
"id"
,
""
);
}
}
stringBuilder
.
append
(
"('"
).
append
(
packageName
).
append
(
"','"
).
append
(
platform
).
append
(
"',"
).
append
(
"
1
0000000000),"
);
stringBuilder
.
append
(
"('"
).
append
(
packageName
).
append
(
"','"
).
append
(
platform
).
append
(
"',"
).
append
(
"
3
0000000000),"
);
}
}
PreparedStatement
stmt
=
con
.
prepareStatement
(
insertSql
.
replace
(
"@VALUES"
,
stringBuilder
.
substring
(
0
,
stringBuilder
.
length
()
-
1
)));
...
...
This diff is collapsed.
Click to expand it.
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