diff options
author | Vitaly Takmazov | 2018-01-31 14:30:36 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-31 14:30:36 +0300 |
commit | d1dae1f5bb9de1b8ff6893e821e9aaad3e37216c (patch) | |
tree | e185e5d7ef1d54bf64a3402f2454f11bc9ceb4c9 /juick-server-jdbc/src/main/java/com/juick/service | |
parent | 0c9e67eb323189993b48d71e866b2c4f97270e5e (diff) |
core: drop jid from user properties
Diffstat (limited to 'juick-server-jdbc/src/main/java/com/juick/service')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/service/UserServiceImpl.java | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/service/UserServiceImpl.java b/juick-server-jdbc/src/main/java/com/juick/service/UserServiceImpl.java index 9aa82559..8adab346 100644 --- a/juick-server-jdbc/src/main/java/com/juick/service/UserServiceImpl.java +++ b/juick-server-jdbc/src/main/java/com/juick/service/UserServiceImpl.java @@ -238,26 +238,6 @@ public class UserServiceImpl extends BaseJdbcService implements UserService { @Transactional(readOnly = true) @Override - public List<com.juick.User> getUsersByJID(final Collection<String> jids) { - if (CollectionUtils.isEmpty(jids)) - return Collections.emptyList(); - - return getNamedParameterJdbcTemplate().query( - "SELECT users.id, users.nick, jids.jid FROM users " + - " INNER JOIN jids ON jids.user_id = users.id " + - " WHERE jids.jid IN (:jids)", - new MapSqlParameterSource("jids", jids), - (rs, rowNum) -> { - com.juick.User user = new com.juick.User(); - user.setUid(rs.getInt(1)); - user.setName(rs.getString(2)); - user.setJid(rs.getString(3)); - return user; - }); - } - - @Transactional(readOnly = true) - @Override public List<String> getJIDsbyUID(final int uid) { return getJdbcTemplate().queryForList("SELECT jid FROM jids WHERE user_id = ? AND active = 1", String.class, uid); } |