하석형 하석형 04-09
250409 하석형 권한목록/갯수/상세 조회 시 use_yn 조건 삭제
@c085238937800282d9f763a6a8eacd9bdb2c0fdd
src/main/resources/mybatis/mapper/author/author-SQL.xml
--- src/main/resources/mybatis/mapper/author/author-SQL.xml
+++ src/main/resources/mybatis/mapper/author/author-SQL.xml
@@ -61,7 +61,8 @@
     -->
     <select id="findAll" parameterType="Pagination" resultType="AuthorVO">
         <include refid="selectAuthrt" />
-         WHERE ai.use_yn = 'Y'
+        WHERE 1=1
+        <!--ai.use_yn = 'Y'-->
         <include refid="selectRequirement" />
         LIMIT #{recordSize} OFFSET #{limitStart}
     </select>
@@ -74,7 +75,8 @@
     <select id="findAllCnt" parameterType="Pagination" resultType="Integer">
         SELECT COUNT(ai.authrt_cd)
           FROM authrt_info ai
-         WHERE ai.use_yn = 'Y'
+        WHERE 1=1
+        <!--ai.use_yn = 'Y'-->
         <include refid="selectRequirement" />
     </select>
 
@@ -86,7 +88,7 @@
     <select id="findByAuthorCode" parameterType="String" resultType="AuthorVO">
         <include refid="selectAuthrt" />
          WHERE ai.authrt_cd = #{authrtCd}
-           AND ai.use_yn = 'Y'
+        <!--AND ai.use_yn = 'Y'-->
     </select>
 
 
Add a comment
List