Merge branch 'JIWOO'

This commit is contained in:
JIWOO 2024-07-26 11:09:19 +09:00
commit 926bd534c0

View File

@ -27,7 +27,12 @@
<select id="authorManageDAO.selectAuthorList" parameterClass="AuthorManageVO" resultMap="author"> <select id="authorManageDAO.selectAuthorList" parameterClass="AuthorManageVO" resultMap="author">
/* authorManageDAO.selectAuthorList */ /* authorManageDAO.selectAuthorList */
SELECT * FROM ( SELECT *
FROM (
SELECT
a.*
, ROWNUM AS rnum
FROM(
SELECT SELECT
AUTHOR_CODE, AUTHOR_CODE,
AUTHOR_NM, AUTHOR_NM,
@ -35,15 +40,6 @@
AUTHOR_CREAT_DE, AUTHOR_CREAT_DE,
SORT_NUM SORT_NUM
FROM LETTNAUTHORINFO 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 ORDER BY 1
<isNotEmpty property="searchSortCnd"> <isNotEmpty property="searchSortCnd">
,$searchSortCnd$ ,$searchSortCnd$
@ -51,7 +47,11 @@
<isNotEmpty property="searchSortOrd"> <isNotEmpty property="searchSortOrd">
$searchSortOrd$ $searchSortOrd$
</isNotEmpty> </isNotEmpty>
) WHERE rnum > #firstIndex# ) a
<![CDATA[
WHERE ROWNUM <= (#firstIndex# + #recordCountPerPage#)
]]>
)WHERE rnum > #firstIndex#
</select> </select>
<insert id="authorManageDAO.insertAuthor" parameterClass="AuthorManage"> <insert id="authorManageDAO.insertAuthor" parameterClass="AuthorManage">