Commit b78b11cd by jinfeng.wang

fix

parent 0d14672b
...@@ -75,7 +75,9 @@ public class StorageTag { ...@@ -75,7 +75,9 @@ public class StorageTag {
resultSet.close(); resultSet.close();
preparedStatement.close(); preparedStatement.close();
insertAdmin(resultSetAdmin); if (resultSetAdmin.next()) {
insertAdmin(resultSetAdmin);
}
resultSetAdmin.close(); resultSetAdmin.close();
preparedStatement_admin.close(); preparedStatement_admin.close();
connection.close(); connection.close();
...@@ -184,7 +186,9 @@ public class StorageTag { ...@@ -184,7 +186,9 @@ public class StorageTag {
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
} }
update(packageSet); if (packageSet.size() > 0) {
update(packageSet);
}
} }
private static void insert(Map<String, Integer> map) throws JsonProcessingException { private static void insert(Map<String, Integer> map) throws JsonProcessingException {
......
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