diff options
author | Vitaly Takmazov | 2022-12-16 23:03:37 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2022-12-16 23:03:37 +0300 |
commit | 528bc9cfd98489d59ed2cf4764c84c1805215c54 (patch) | |
tree | b3d2b6c398d0a55d548011afc4fbe789e86f8323 | |
parent | 1534365e1d6ab23b1c31b27de74b8cd8e5176b48 (diff) |
Make tag query SQL-compatible
-rw-r--r-- | src/main/java/com/juick/service/TagServiceImpl.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/juick/service/TagServiceImpl.java b/src/main/java/com/juick/service/TagServiceImpl.java index 1ae98c0f..07dffc23 100644 --- a/src/main/java/com/juick/service/TagServiceImpl.java +++ b/src/main/java/com/juick/service/TagServiceImpl.java @@ -106,10 +106,10 @@ public class TagServiceImpl extends BaseJdbcService implements TagService { @Transactional(readOnly = true) @Override public boolean getTagNoIndex(final int tagId) { - List<Integer> list = getJdbcTemplate().queryForList( - "SELECT noindex FROM tags WHERE tag_id=?", Integer.class, tagId); + List<Boolean> list = getJdbcTemplate().queryForList( + "SELECT noindex FROM tags WHERE tag_id=?", Boolean.class, tagId); - return !list.isEmpty() && list.get(0) == 1; + return !list.isEmpty() && list.get(0); } @Transactional |