封禁用户问题修改

This commit is contained in:
heavyrain.lee
2019-06-23 18:30:58 +08:00
parent c68beeaa51
commit 15703d66fb
5 changed files with 43 additions and 3 deletions
@@ -1623,6 +1623,27 @@ public class DatabaseStore {
});
}
void deleteUserStatus(String userId) {
mScheduler.execute(()->{
Connection connection = null;
PreparedStatement statement = null;
try {
connection = DBUtil.getConnection();
String sql = "delete from t_user_status where _uid = ?";
statement = connection.prepareStatement(sql);
statement.setString(1, userId);
int count = statement.executeUpdate();
LOG.info("Update rows {}", count);
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
Utility.printExecption(LOG, e);
} finally {
DBUtil.closeDB(connection, statement);
}
});
}
void updateUserStatus(String userId, int status) {
mScheduler.execute(()->{
Connection connection = null;