From d1dae1f5bb9de1b8ff6893e821e9aaad3e37216c Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 31 Jan 2018 14:30:36 +0300 Subject: core: drop jid from user properties --- .../main/java/com/juick/service/UserServiceImpl.java | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'juick-server-jdbc/src/main') 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 @@ -236,26 +236,6 @@ public class UserServiceImpl extends BaseJdbcService implements UserService { new UserMapper()); } - @Transactional(readOnly = true) - @Override - public List getUsersByJID(final Collection 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 getJIDsbyUID(final int uid) { -- cgit v1.2.3