From 787b4a5c3a2f41ab56b0aa617b2346827c838436 Mon Sep 17 00:00:00 2001 From: Mlxa0324 Date: Tue, 29 Nov 2022 00:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=BB=E8=BE=91=E5=88=A0=E9=99=A4=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E5=88=A0=E9=99=A4=E9=9D=9E=E5=88=A0=E9=99=A4=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E7=9A=84=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/main/resources/sql/jlw/generalQuestionLog.md | 4 ++-- .../main/resources/sql/jlw/teacherOpenCourseQuestionLog.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/web/src/main/resources/sql/jlw/generalQuestionLog.md b/web/src/main/resources/sql/jlw/generalQuestionLog.md index e2623057..9f288417 100644 --- a/web/src/main/resources/sql/jlw/generalQuestionLog.md +++ b/web/src/main/resources/sql/jlw/generalQuestionLog.md @@ -243,14 +243,14 @@ deleteGeneralQuestionLogByIds * 批量删除(假删除) - update general_question_log set general_question_log_status = 2 where find_in_set(general_question_log_id,#ids#) + update general_question_log set general_question_log_status = 2 where find_in_set(general_question_log_id,#ids#) and (general_question_log_status = 1 or general_question_log_status is null) logicDeleteBySettingIds === * 根据题目配置IDs批量删除(假删除) - update general_question_log set general_question_log_status = 2 where find_in_set(general_question_setting_id,#settingIds#) + update general_question_log set general_question_log_status = 2 where find_in_set(general_question_setting_id,#settingIds#) and (general_question_log_status = 1 or general_question_log_status is null) deleteBySettingIds === diff --git a/web/src/main/resources/sql/jlw/teacherOpenCourseQuestionLog.md b/web/src/main/resources/sql/jlw/teacherOpenCourseQuestionLog.md index c7e2432a..744371f0 100644 --- a/web/src/main/resources/sql/jlw/teacherOpenCourseQuestionLog.md +++ b/web/src/main/resources/sql/jlw/teacherOpenCourseQuestionLog.md @@ -352,7 +352,7 @@ deleteTeacherOpenCourseQuestionLogByIds * 批量删除(假删除) - update teacher_open_course_question_log set teacher_open_course_question_log_status = 2 where find_in_set(teacher_open_course_question_log_id,#ids#) + update teacher_open_course_question_log set teacher_open_course_question_log_status = 2 where find_in_set(teacher_open_course_question_log_id,#ids#) and (teacher_open_course_question_log_status = 1 or teacher_open_course_question_log_status is null) logicDeleteBySettingIds @@ -360,7 +360,7 @@ logicDeleteBySettingIds * 根据题目配置ID批量删除(假删除) - update teacher_open_course_question_log set teacher_open_course_question_log_status = 2 where find_in_set(teacher_open_course_question_setting_id, #settingIds#) + update teacher_open_course_question_log set teacher_open_course_question_log_status = 2 where find_in_set(teacher_open_course_question_setting_id, #settingIds#) and (teacher_open_course_question_log_status = 1 or teacher_open_course_question_log_status is null) deleteByIds