[api] 관리자 휴면/탈퇴/삭제 추가
This commit is contained in:
@@ -48,6 +48,44 @@
|
||||
AND ATU.del_yn = 1
|
||||
</update>
|
||||
|
||||
<update id="updateAdminMemberDormantStatus">
|
||||
/*AdminMemberMapper.updateAdminMemberDormantStatus*/
|
||||
UPDATE ALISTLMS.test_user
|
||||
SET dormant_yn = #{dormantYn}
|
||||
, dormant_at =
|
||||
CASE
|
||||
WHEN #{dormantYn} = 'Y' THEN now()
|
||||
WHEN #{dormantYn} = 'N' THEN NULL
|
||||
ELSE dormant_at
|
||||
END
|
||||
, update_at = now()
|
||||
WHERE user_idx = #{userIdx}
|
||||
AND del_yn = 1
|
||||
</update>
|
||||
|
||||
<update id="updateAdminMemberWithdrawStatus">
|
||||
/*AdminMemberMapper.updateAdminMemberWithdrawStatus*/
|
||||
UPDATE ALISTLMS.test_user
|
||||
SET withdraw_status = #{withdrawStatus}
|
||||
, withdraw_at =
|
||||
CASE
|
||||
WHEN #{withdrawStatus} IN ('P', 'Y') THEN now()
|
||||
WHEN #{withdrawStatus} = 'N' THEN NULL
|
||||
ELSE withdraw_at
|
||||
END
|
||||
, update_at = now()
|
||||
WHERE user_idx = #{userIdx}
|
||||
AND del_yn = 1
|
||||
</update>
|
||||
<update id="deleteAdminMember">
|
||||
/*AdminMemberMapper.deleteAdminMember*/
|
||||
UPDATE ALISTLMS.test_user
|
||||
SET del_yn = 0
|
||||
, update_at = now()
|
||||
WHERE user_idx = #{userIdx}
|
||||
AND del_yn = 1
|
||||
</update>
|
||||
|
||||
<select id="selectAdminMemberCount" resultType="int">
|
||||
/*AdminMemberMapper.selectAdminMemberCount*/
|
||||
SELECT COUNT(*)
|
||||
|
||||
Reference in New Issue
Block a user