guntaek 07-31
Merge remote-tracking branch 'origin/master'
@1df61736ed578bc3a8d28a4c1c0a855ee367a916
src/main/resources/mybatis/mapper/lms/classes-SQL.xml
--- src/main/resources/mybatis/mapper/lms/classes-SQL.xml
+++ src/main/resources/mybatis/mapper/lms/classes-SQL.xml
@@ -6,6 +6,7 @@
         <result property="sclsId" column="scls_id"/>
         <result property="userId" column="user_id"/>
         <result property="sclsNm" column="scls_nm"/>
+        <result property="useAt" column="use_at"/>
     </resultMap>
 
     <!--
@@ -21,6 +22,7 @@
             class
         WHERE
             user_id = #{userId}
+            AND use_at = 'Y'
     </select>
 
     <!--
@@ -32,9 +34,11 @@
         INSERT INTO class( scls_id
                          , user_id
                          , scls_nm
+                         , use_at
         ) VALUES ( #{sclsId}
                  , #{userId}
                  , #{sclsNm}
+                 , 'Y'
         );
     </insert>
 
@@ -56,11 +60,13 @@
          작성일 : 2024.07.26
          내 용 : 반 삭제
      -->
-    <delete id="deleteClass" parameterType="String">
-        DELETE FROM class
+    <update id="deleteClass" parameterType="String">
+        UPDATE class
+        SET
+            use_at = 'N'
         WHERE
             scls_id = #{sclsId}
-    </delete>
+    </update>
 
     <!--
          작성자 : 정다정
Add a comment
List