aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src/main/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-01-31 14:30:36 +0300
committerGravatar Vitaly Takmazov2018-01-31 14:30:36 +0300
commitd1dae1f5bb9de1b8ff6893e821e9aaad3e37216c (patch)
treee185e5d7ef1d54bf64a3402f2454f11bc9ceb4c9 /juick-server-jdbc/src/main/java/com/juick/service
parent0c9e67eb323189993b48d71e866b2c4f97270e5e (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.java20
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);
}