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
9758ee99
Commit
9758ee99
authored
Aug 23, 2019
by
jinfeng.wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
8070a36c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
StorageTag.java
src/main/java/com/mobvista/apptag/utils/StorageTag.java
+7
-6
No files found.
src/main/java/com/mobvista/apptag/utils/StorageTag.java
View file @
9758ee99
...
@@ -65,10 +65,11 @@ public class StorageTag {
...
@@ -65,10 +65,11 @@ public class StorageTag {
}
}
insert
(
map
);
insert
(
map
);
insertAdmin
(
resultSetAdmin
);
resultSet
.
close
();
resultSet
.
close
();
resultSetAdmin
.
close
();
preparedStatement
.
close
();
preparedStatement
.
close
();
insertAdmin
(
resultSetAdmin
);
resultSetAdmin
.
close
();
preparedStatement_admin
.
close
();
connection
.
close
();
connection
.
close
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
...
@@ -98,9 +99,9 @@ public class StorageTag {
...
@@ -98,9 +99,9 @@ public class StorageTag {
Class
.
forName
(
"com.mysql.jdbc.Driver"
);
Class
.
forName
(
"com.mysql.jdbc.Driver"
);
Connection
con
=
DriverManager
.
getConnection
(
CONNECTION_URL
,
USER
,
PASSWORD
);
Connection
con
=
DriverManager
.
getConnection
(
CONNECTION_URL
,
USER
,
PASSWORD
);
Statement
stmt1
=
con
.
createStatement
();
Statement
stmt1
=
con
.
createStatement
();
Statement
stmt2
=
con
.
createStatement
();
//
Statement stmt2 = con.createStatement();
String
deleteSql1
=
"DELETE FROM storage_result WHERE package_name IN "
;
String
deleteSql1
=
"DELETE FROM storage_result WHERE package_name IN "
;
String
deleteSql2
=
"DELETE FROM storage WHERE package_name IN "
;
//
String deleteSql2 = "DELETE FROM storage WHERE package_name IN ";
Iterator
<
String
>
iterator
=
set
.
iterator
();
Iterator
<
String
>
iterator
=
set
.
iterator
();
StringBuffer
sql
=
new
StringBuffer
();
StringBuffer
sql
=
new
StringBuffer
();
while
(
iterator
.
hasNext
())
{
while
(
iterator
.
hasNext
())
{
...
@@ -109,9 +110,9 @@ public class StorageTag {
...
@@ -109,9 +110,9 @@ public class StorageTag {
}
}
stmt1
.
execute
(
deleteSql1
+
"("
+
sql
.
substring
(
0
,
sql
.
length
()
-
1
)
+
")"
);
stmt1
.
execute
(
deleteSql1
+
"("
+
sql
.
substring
(
0
,
sql
.
length
()
-
1
)
+
")"
);
stmt1
.
close
();
stmt1
.
close
();
stmt2
.
execute
(
deleteSql2
+
"("
+
sql
.
substring
(
0
,
sql
.
length
()
-
1
)
+
")"
);
// stmt2.execute(deleteSql2 + "(" + sql.substring(0, sql.length() - 1) + ")");
// stmt2.close();
con
.
close
();
con
.
close
();
stmt2
.
close
();
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
...
...
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