Skip to content

Commit

Permalink
[FIX] 커뮤니티 리스트 api 에러 수정 (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
sangminee authored Feb 27, 2024
1 parent 5ae05da commit 6dd90f6
Showing 1 changed file with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,12 @@
</select>

<select id="findSizeByType" resultType="java.lang.Integer">
SELECT COUNT(ID)
FROM COMMUNITY
WHERE COMMUNITY_TYPE = #{type}
AND DELETED = 0
GROUP BY ID
SELECT COUNT(*)
FROM COMMUNITY C
LEFT JOIN USERS U
ON C.WRITE_ID = U.ID
WHERE U.USER_TYPE = #{type}
AND C.DELETED = 0
</select>

<select id="findSizeByCollection" resultType="java.lang.Integer">
Expand Down

0 comments on commit 6dd90f6

Please sign in to comment.