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
... | ... | @@ -6,6 +6,7 @@ |
6 | 6 |
<result property="sclsId" column="scls_id"/> |
7 | 7 |
<result property="userId" column="user_id"/> |
8 | 8 |
<result property="sclsNm" column="scls_nm"/> |
9 |
+ <result property="useAt" column="use_at"/> |
|
9 | 10 |
</resultMap> |
10 | 11 |
|
11 | 12 |
<!-- |
... | ... | @@ -21,6 +22,7 @@ |
21 | 22 |
class |
22 | 23 |
WHERE |
23 | 24 |
user_id = #{userId} |
25 |
+ AND use_at = 'Y' |
|
24 | 26 |
</select> |
25 | 27 |
|
26 | 28 |
<!-- |
... | ... | @@ -32,9 +34,11 @@ |
32 | 34 |
INSERT INTO class( scls_id |
33 | 35 |
, user_id |
34 | 36 |
, scls_nm |
37 |
+ , use_at |
|
35 | 38 |
) VALUES ( #{sclsId} |
36 | 39 |
, #{userId} |
37 | 40 |
, #{sclsNm} |
41 |
+ , 'Y' |
|
38 | 42 |
); |
39 | 43 |
</insert> |
40 | 44 |
|
... | ... | @@ -56,11 +60,13 @@ |
56 | 60 |
작성일 : 2024.07.26 |
57 | 61 |
내 용 : 반 삭제 |
58 | 62 |
--> |
59 |
- <delete id="deleteClass" parameterType="String"> |
|
60 |
- DELETE FROM class |
|
63 |
+ <update id="deleteClass" parameterType="String"> |
|
64 |
+ UPDATE class |
|
65 |
+ SET |
|
66 |
+ use_at = 'N' |
|
61 | 67 |
WHERE |
62 | 68 |
scls_id = #{sclsId} |
63 |
- </delete> |
|
69 |
+ </update> |
|
64 | 70 |
|
65 | 71 |
<!-- |
66 | 72 |
작성자 : 정다정 |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?