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
3e4cb4ec
Commit
3e4cb4ec
authored
Aug 23, 2019
by
jinfeng.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8c28a4e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
StorageTag.java
src/main/java/com/mobvista/apptag/utils/StorageTag.java
+5
-1
No files found.
src/main/java/com/mobvista/apptag/utils/StorageTag.java
View file @
3e4cb4ec
...
@@ -3,6 +3,7 @@ package com.mobvista.apptag.utils;
...
@@ -3,6 +3,7 @@ package com.mobvista.apptag.utils;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.google.gson.JsonArray
;
import
com.google.gson.JsonArray
;
import
org.apache.commons.lang3.StringUtils
;
import
java.sql.*
;
import
java.sql.*
;
import
java.text.DecimalFormat
;
import
java.text.DecimalFormat
;
...
@@ -154,10 +155,13 @@ public class StorageTag {
...
@@ -154,10 +155,13 @@ public class StorageTag {
while
(
resultSet
.
next
())
{
while
(
resultSet
.
next
())
{
String
packageName
=
resultSet
.
getString
(
"package_name"
);
String
packageName
=
resultSet
.
getString
(
"package_name"
);
String
appName
=
resultSet
.
getString
(
"app_name"
);
String
appName
=
resultSet
.
getString
(
"app_name"
);
if
(
StringUtils
.
isNotBlank
(
appName
))
{
appName
=
appName
.
replaceAll
(
"'"
,
"\'"
);
}
String
platform
=
resultSet
.
getString
(
"platform"
);
String
platform
=
resultSet
.
getString
(
"platform"
);
String
tag
=
resultSet
.
getString
(
"tag"
);
String
tag
=
resultSet
.
getString
(
"tag"
);
insertSql
.
append
(
"('"
).
append
(
packageName
).
append
(
"','"
).
append
(
appName
.
replaceAll
(
"'"
,
"\'"
)
).
append
(
"','"
).
append
(
platform
).
append
(
"','"
).
append
(
tag
)
insertSql
.
append
(
"('"
).
append
(
packageName
).
append
(
"','"
).
append
(
appName
).
append
(
"','"
).
append
(
platform
).
append
(
"','"
).
append
(
tag
)
.
append
(
"','"
).
append
(
sdf
.
format
(
new
Date
())).
append
(
"'),"
);
.
append
(
"','"
).
append
(
sdf
.
format
(
new
Date
())).
append
(
"'),"
);
packageSet
.
add
(
packageName
);
packageSet
.
add
(
packageName
);
}
}
...
...
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