|
@@ -9,6 +9,7 @@ DELETE t FROM basic_course t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM t_c_statistics_temp t where exists(select temp.* from(select be.id from basic_exam be where be.school_id = #{schoolId}) temp where t.exam_id = temp.id);
|
|
|
DELETE t FROM t_c_statistics t where exists(select temp.* from(select be.id from basic_exam be where be.school_id = #{schoolId}) temp where t.exam_id = temp.id);
|
|
|
delete from mark_arbitrate_history where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
+delete from mark_document where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
delete from mark_group where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
delete from mark_group_student where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
delete from mark_header_subjective_score where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
@@ -47,6 +48,8 @@ DELETE t FROM basic_teach_course t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM basic_student t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM basic_template t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM basic_template_org t where t.school_id = #{schoolId};
|
|
|
+DELETE t FROM basic_teach_clazz t where t.school_id = #{schoolId};
|
|
|
+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};
|
|
@@ -55,6 +58,10 @@ 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 cloud_user_push_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_detail t where exists(select temp.* from(select ecd.id from exam_card_detail ecd join exam_card ec on ec.id = ecd.card_id where ec.school_id = #{schoolId}) temp where t.id = temp.id);
|
|
|
DELETE t FROM exam_card t where t.school_id = #{schoolId};
|
|
@@ -68,6 +75,8 @@ DELETE t FROM exam_paper_structure t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM exam_print_plan t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM exam_student t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM exam_task t where t.school_id = #{schoolId};
|
|
|
+DELETE t FROM exam_task_assign_paper_type t where t.exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
+DELETE t FROM exam_task_paper_data t where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
DELETE t FROM exam_task_apply_temp t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM exam_task_detail t where exists(select temp.* from(select et.id from exam_task et where et.school_id = #{schoolId}) temp where t.exam_task_id = temp.id);
|
|
|
DELETE t FROM exam_task_paper_log t where exists(select temp.* from(select et.id from exam_task et where et.school_id = #{schoolId}) temp where t.exam_task_id = temp.id);
|
|
@@ -97,6 +106,10 @@ DELETE t FROM sys_user t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM t_b_session t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM t_b_sync_task t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM t_b_task t where t.school_id = #{schoolId};
|
|
|
+DELETE t FROM t_b_task_pdf t where t.school_id = #{schoolId};
|
|
|
+DELETE t FROM t_c_paper_struct t where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
+DELETE t FROM t_c_final_score t where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
+DELETE t FROM t_c_usual_score t where exam_id in (select id from basic_exam where school_id = #{schoolId});
|
|
|
DELETE t FROM t_f_flow_join t where exists(select temp.* from (select tffe.id from t_f_custom_flow_entity tffe join t_f_custom_flow tfcf on tfcf.id = tffe.t_f_custom_flow_id where tfcf.school_id = #{schoolId}) temp where t.flow_entity_id = temp.id);
|
|
|
DELETE t FROM t_f_custom_flow_entity t where exists(select temp.* from(select tfcf.id from t_f_custom_flow tfcf where tfcf.school_id = #{schoolId}) temp where t.t_f_custom_flow_id = temp.id);
|
|
|
DELETE t FROM t_f_custom_flow t where t.school_id = #{schoolId};
|
|
@@ -104,6 +117,8 @@ DELETE t FROM t_f_flow_approve t where t.school_id = #{schoolId};
|
|
|
DELETE t FROM t_f_flow_log t where t.school_id = #{schoolId};
|
|
|
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};
|