Commit b78b11cd by jinfeng.wang

fix

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