목록 카테고리 추가
This commit is contained in:
parent
684b608e2f
commit
58045e3042
@ -3,24 +3,29 @@
|
||||
<mapper namespace="io.company.localhost.mapper.worddictyMapper">
|
||||
<select id="getWordList" parameterType="map" resultType="Map">
|
||||
select
|
||||
*
|
||||
w.*
|
||||
,c.CMNCODNAM category
|
||||
from
|
||||
worddicty
|
||||
worddicty w
|
||||
left join
|
||||
commoncod c
|
||||
on
|
||||
w.WRDDICCAT = c.CMNCODVAL
|
||||
where
|
||||
1=1
|
||||
<!-- 검색어 조건 -->
|
||||
<if test="searchKeyword != null and searchKeyword != ''">
|
||||
and (WRDDICTTL like CONCAT('%', #{searchKeyword}, '%')
|
||||
or WRDDICCON like CONCAT('%', #{searchKeyword}, '%'))
|
||||
and (w.WRDDICTTL like CONCAT('%', #{searchKeyword}, '%')
|
||||
or w.WRDDICCON like CONCAT('%', #{searchKeyword}, '%'))
|
||||
</if>
|
||||
<!-- 색인표 조건 -->
|
||||
<if test="indexKeyword != null and indexKeyword != ''">
|
||||
and WRDDICTTL like CONCAT(#{indexKeyword}, '%')
|
||||
and w.WRDDICTTL like CONCAT(#{indexKeyword}, '%')
|
||||
</if>
|
||||
<!-- 카테고리 조건 -->
|
||||
<if test="category != null and category != ''">
|
||||
and WRDDICCAT = #{category}
|
||||
and w.WRDDICCAT = #{category}
|
||||
</if>
|
||||
order by WRDDICRDT desc
|
||||
order by w.WRDDICRDT desc
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user