Merge branch 'khj' into main
This commit is contained in:
commit
4f14ef5d53
@ -60,8 +60,14 @@
|
|||||||
netmember b ON a.LOCVOTREG = b.MEMBERSEQ
|
netmember b ON a.LOCVOTREG = b.MEMBERSEQ
|
||||||
LEFT JOIN
|
LEFT JOIN
|
||||||
commoncod c ON b.MEMBERCOL = c.CMNCODVAL
|
commoncod c ON b.MEMBERCOL = c.CMNCODVAL
|
||||||
WHERE 1=1
|
WHERE
|
||||||
|
1=1
|
||||||
<include refid="searchConditions"/>
|
<include refid="searchConditions"/>
|
||||||
|
AND EXISTS (
|
||||||
|
SELECT 1 FROM votmember vm
|
||||||
|
WHERE vm.LOCVOTSEQ = a.LOCVOTSEQ
|
||||||
|
AND vm.MEMBERSEQ = #{userId} -- 현재 사용자가 투표 가능 멤버인지 확인
|
||||||
|
)
|
||||||
) AS subquery
|
) AS subquery
|
||||||
WHERE 1=1
|
WHERE 1=1
|
||||||
<if test="myVote != null and myVote != ''">
|
<if test="myVote != null and myVote != ''">
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user