이지우 - 권한관리 목록 조회 수정

This commit is contained in:
JIWOO 2024-07-26 11:08:01 +09:00
parent c89b177447
commit bacb865ebd

View File

@ -27,7 +27,12 @@
<select id="authorManageDAO.selectAuthorList" parameterClass="AuthorManageVO" resultMap="author">
/* authorManageDAO.selectAuthorList */
SELECT * FROM (
SELECT *
FROM (
SELECT
a.*
, ROWNUM AS rnum
FROM(
SELECT
AUTHOR_CODE,
AUTHOR_NM,
@ -35,15 +40,6 @@
AUTHOR_CREAT_DE,
SORT_NUM
FROM LETTNAUTHORINFO
<![CDATA[
WHERE ROWNUM <= (#firstIndex# + #recordCountPerPage#)
]]>
<isNotEmpty property="authorSet">
AND AUTHOR_SET = #authorSet#
</isNotEmpty>
<isEqual prepend="AND" property="searchCondition" compareValue="1">
AUTHOR_NM LIKE '%'||#searchKeyword#||'%'
</isEqual>
ORDER BY 1
<isNotEmpty property="searchSortCnd">
,$searchSortCnd$
@ -51,6 +47,10 @@
<isNotEmpty property="searchSortOrd">
$searchSortOrd$
</isNotEmpty>
) a
<![CDATA[
WHERE ROWNUM <= (#firstIndex# + #recordCountPerPage#)
]]>
)WHERE rnum > #firstIndex#
</select>