목록 카테고리 추가

This commit is contained in:
khj0414 2025-01-09 14:59:48 +09:00
parent 684b608e2f
commit 58045e3042

View File

@ -3,24 +3,29 @@
<mapper namespace="io.company.localhost.mapper.worddictyMapper"> <mapper namespace="io.company.localhost.mapper.worddictyMapper">
<select id="getWordList" parameterType="map" resultType="Map"> <select id="getWordList" parameterType="map" resultType="Map">
select select
* w.*
,c.CMNCODNAM category
from from
worddicty worddicty w
left join
commoncod c
on
w.WRDDICCAT = c.CMNCODVAL
where where
1=1 1=1
<!-- 검색어 조건 --> <!-- 검색어 조건 -->
<if test="searchKeyword != null and searchKeyword != ''"> <if test="searchKeyword != null and searchKeyword != ''">
and (WRDDICTTL like CONCAT('%', #{searchKeyword}, '%') and (w.WRDDICTTL like CONCAT('%', #{searchKeyword}, '%')
or WRDDICCON like CONCAT('%', #{searchKeyword}, '%')) or w.WRDDICCON like CONCAT('%', #{searchKeyword}, '%'))
</if> </if>
<!-- 색인표 조건 --> <!-- 색인표 조건 -->
<if test="indexKeyword != null and indexKeyword != ''"> <if test="indexKeyword != null and indexKeyword != ''">
and WRDDICTTL like CONCAT(#{indexKeyword}, '%') and w.WRDDICTTL like CONCAT(#{indexKeyword}, '%')
</if> </if>
<!-- 카테고리 조건 --> <!-- 카테고리 조건 -->
<if test="category != null and category != ''"> <if test="category != null and category != ''">
and WRDDICCAT = #{category} and w.WRDDICCAT = #{category}
</if> </if>
order by WRDDICRDT desc order by w.WRDDICRDT desc
</select> </select>
</mapper> </mapper>