فهرست منبع

fix:学校数据还原 权限删除更改

caozixuan 1 سال پیش
والد
کامیت
2e2cad295d
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      distributed-print-business/src/main/resources/db/delete-data.sql

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

@@ -98,7 +98,7 @@ DELETE t FROM grade_paper_struct t where t.school_id = #{schoolId};
 DELETE t FROM sys_config t where t.school_id = #{schoolId};
 DELETE t FROM sys_org t where t.school_id = #{schoolId} and (t.`type` <> 'SCHOOL' or t.`type` is null);
 DELETE t FROM sys_role_group_member t where exists(select temp.* from(select sr.id from sys_role sr where sr.school_id = #{schoolId}) temp where t.role_id = temp.id);
-DELETE t FROM sys_role_privilege t where exists(select temp.* from(select sr.id from sys_role sr where sr.school_id = #{schoolId}) temp where t.role_id = temp.id);
+DELETE t FROM sys_role_privilege t where t.school_id = #{schoolId};
 DELETE t FROM sys_user_role t where exists(select temp.* from(select sr.id from sys_role sr where sr.school_id = #{schoolId}) temp where t.role_id = temp.id);
 DELETE t FROM sys_role t where t.school_id = #{schoolId};
 DELETE t FROM sys_user t where t.school_id = #{schoolId};