xiaofei 1 рік тому
батько
коміт
3bffabcfeb

+ 19 - 7
distributed-print-business/src/main/resources/db/delete-data.sql

@@ -52,15 +52,11 @@ DELETE t FROM basic_exam_student t where t.school_id = #{schoolId};
 DELETE t FROM basic_user_course t where t.school_id = #{schoolId};
 DELETE t FROM basic_verify_code t where t.school_id = #{schoolId};
 DELETE t FROM basic_role_data_permission t where t.school_id = #{schoolId};
+DELETE t FROM basic_professional t where t.school_id = #{schoolId};
 
 DELETE t FROM client_print_data t where t.school_id = #{schoolId};
 DELETE t FROM client_status t where t.school_id = #{schoolId};
 
-DELETE t FROM course_target t where t.school_id = #{schoolId};
-DELETE t FROM course_evaluation t where t.school_id = #{schoolId};
-DELETE t FROM course_weight t where t.school_id = #{schoolId};
-DELETE t FROM course_dimension t where t.school_id = #{schoolId};
-
 DELETE t FROM exam_card t where t.school_id = #{schoolId};
 DELETE t FROM exam_detail t where t.school_id = #{schoolId};
 DELETE t FROM exam_detail_course t where t.school_id = #{schoolId};
@@ -110,11 +106,27 @@ DELETE t FROM t_g_error t where t.school_id = #{schoolId};
 DELETE t FROM t_m_mq_message t where t.school_id = #{schoolId};
 DELETE t FROM t_r_exam_student t where t.r_basic_info_id in (select id from t_r_basic_info t where exam_id in (select id from basic_exam where school_id = #{schoolId}));
 DELETE t FROM t_r_basic_info t where exam_id in (select id from basic_exam where school_id = #{schoolId});
-DELETE t FROM t_s_auth t where t.school_id = #{schoolId};
 DELETE t FROM t_school_privilege t where t.school_id = #{schoolId};
 DELETE t FROM t_school_role t where t.school_id = #{schoolId};
 DELETE t FROM t_sync_exam_student_score t where t.school_id = #{schoolId};
 
 DELETE t FROM teach_clazz t where t.school_id = #{schoolId};
 DELETE t FROM teach_course t where t.school_id = #{schoolId};
-DELETE t FROM teach_student t where t.school_id = #{schoolId};
+DELETE t FROM teach_student t where t.school_id = #{schoolId};
+
+DELETE t FROM obe_course_dimension t where t.school_id = #{schoolId};
+DELETE t FROM obe_course_evaluation t where t.school_id = #{schoolId};
+DELETE t FROM obe_course_outline t where t.school_id = #{schoolId};
+DELETE t FROM obe_course_requirement_dimension t where t.school_id = #{schoolId};
+delete from obe_course_requirement_matrix where culture_program_id in (select id from obe_culture_program where school_id = #{schoolId});
+delete from obe_course_requirement_report where culture_program_id in (select id from obe_culture_program where school_id = #{schoolId});
+DELETE t FROM obe_course_target t where t.school_id = #{schoolId};
+DELETE t FROM obe_course_weight t where t.school_id = #{schoolId};
+delete from obe_culture_program_course where culture_program_id in (select id from obe_culture_program where school_id = #{schoolId});
+delete from obe_culture_program_requirement where culture_program_id in (select id from obe_culture_program where school_id = #{schoolId});
+delete from obe_culture_program_target where culture_program_id in (select id from obe_culture_program where school_id = #{schoolId});
+delete from obe_requirement_target_matrix where culture_program_id in (select id from obe_culture_program where school_id = #{schoolId});
+DELETE t FROM obe_culture_program t where t.school_id = #{schoolId};
+delete from scan_log where school_code in (select code from basic_school where id = #{schoolId});
+
+