|
@@ -1,46 +1,46 @@
|
|
-- 1.5.1
|
|
-- 1.5.1
|
|
USE `stmms_ft`;
|
|
USE `stmms_ft`;
|
|
|
|
|
|
-ALTER TABLE stmms_ft.eb_selective_student ADD INDEX `index1` (`exam_id`, `subject_code`);
|
|
|
|
-ALTER TABLE stmms_ft.m_trial_library DROP INDEX `index2`;
|
|
|
|
-ALTER TABLE stmms_ft.m_trial_library ADD INDEX `index2` (`student_id`, `group_number`);
|
|
|
|
-ALTER TABLE stmms_ft.eb_marker ADD COLUMN `finish_count_na` int(11) DEFAULT NULL COMMENT '完成数量不含仲裁';
|
|
|
|
-ALTER TABLE stmms_ft.eb_marker ADD COLUMN `valid_count_na` int(11) DEFAULT NULL COMMENT '有效数量不含仲裁';
|
|
|
|
-ALTER TABLE stmms_ft.eb_marker ADD COLUMN `avg_score_na` double DEFAULT NULL COMMENT '平均分不含仲裁';
|
|
|
|
-ALTER TABLE stmms_ft.eb_marker ADD COLUMN `avg_speed_na` double DEFAULT NULL COMMENT '平均时长不含仲裁';
|
|
|
|
-ALTER TABLE stmms_ft.eb_marker ADD COLUMN `stdev_score_na` double DEFAULT NULL COMMENT '标准差不含仲裁';
|
|
|
|
|
|
+ALTER TABLE eb_selective_student ADD INDEX `index1` (`exam_id`, `subject_code`);
|
|
|
|
+ALTER TABLE m_trial_library DROP INDEX `index2`;
|
|
|
|
+ALTER TABLE m_trial_library ADD INDEX `index2` (`student_id`, `group_number`);
|
|
|
|
+ALTER TABLE eb_marker ADD COLUMN `finish_count_na` int(11) DEFAULT NULL COMMENT '完成数量不含仲裁';
|
|
|
|
+ALTER TABLE eb_marker ADD COLUMN `valid_count_na` int(11) DEFAULT NULL COMMENT '有效数量不含仲裁';
|
|
|
|
+ALTER TABLE eb_marker ADD COLUMN `avg_score_na` double DEFAULT NULL COMMENT '平均分不含仲裁';
|
|
|
|
+ALTER TABLE eb_marker ADD COLUMN `avg_speed_na` double DEFAULT NULL COMMENT '平均时长不含仲裁';
|
|
|
|
+ALTER TABLE eb_marker ADD COLUMN `stdev_score_na` double DEFAULT NULL COMMENT '标准差不含仲裁';
|
|
|
|
|
|
-ALTER TABLE stmms_ft.eb_exam_student ADD COLUMN `objective_page_count` int(11) NOT NULL DEFAULT 0 COMMENT '客观题图数量';
|
|
|
|
-ALTER TABLE stmms_ft.eb_exam ADD COLUMN `inspect_round_limit` tinyint(1) NOT NULL DEFAULT 1 COMMENT '全卷复核进度100%时才能再次复核';
|
|
|
|
|
|
+ALTER TABLE eb_exam_student ADD COLUMN `objective_page_count` int(11) NOT NULL DEFAULT 0 COMMENT '客观题图数量';
|
|
|
|
+ALTER TABLE eb_exam ADD COLUMN `inspect_round_limit` tinyint(1) NOT NULL DEFAULT 1 COMMENT '全卷复核进度100%时才能再次复核';
|
|
|
|
|
|
-update stmms_ft.b_privilege set seq=50 where code='exam_paper';
|
|
|
|
-update stmms_ft.b_privilege set seq=40 where code='exam_scan';
|
|
|
|
|
|
+update b_privilege set seq=50 where code='exam_paper';
|
|
|
|
+update b_privilege set seq=40 where code='exam_scan';
|
|
|
|
|
|
|
|
|
|
-delete from stmms_ft.b_privilege where code in ('exam_report_subject','exam_report_subject_range');
|
|
|
|
-delete from stmms_ft.b_role_privilege where privilege_code in ('exam_report_subject','exam_report_subject_range');
|
|
|
|
-delete from stmms_ft.b_role_privilege where privilege_code in ('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit','exam_mark-group-delete');
|
|
|
|
|
|
+delete from b_privilege where code in ('exam_report_subject','exam_report_subject_range');
|
|
|
|
+delete from b_role_privilege where privilege_code in ('exam_report_subject','exam_report_subject_range');
|
|
|
|
+delete from b_role_privilege where privilege_code in ('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit','exam_mark-group-delete');
|
|
|
|
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`,`icon`,`i18n`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`,`icon`,`i18n`)
|
|
VALUES ('overview', '主页导览', 'root_code', 'MENU', '/admin/basic/overview', 5,1,'icon-bookmark','index.overview');
|
|
VALUES ('overview', '主页导览', 'root_code', 'MENU', '/admin/basic/overview', 5,1,'icon-bookmark','index.overview');
|
|
|
|
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`,`icon`,`i18n`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`,`icon`,`i18n`)
|
|
VALUES ('exam_report_subject', '科目分析', 'root_code', 'MENU', '/admin/basic/role/info/sub/page', 110,1,'icon-asterisk','index.report.subject');
|
|
VALUES ('exam_report_subject', '科目分析', 'root_code', 'MENU', '/admin/basic/role/info/sub/page', 110,1,'icon-asterisk','index.report.subject');
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-total', '总量分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubject', 10,2);
|
|
VALUES ('exam_report_subject-total', '总量分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubject', 10,2);
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-range', '分段统计', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectRange', 20,2);
|
|
VALUES ('exam_report_subject-range', '分段统计', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectRange', 20,2);
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-college', '学院分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectCollege', 30,2);
|
|
VALUES ('exam_report_subject-college', '学院分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectCollege', 30,2);
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-teacher', '任课老师分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectTeacher', 40,2);
|
|
VALUES ('exam_report_subject-teacher', '任课老师分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectTeacher', 40,2);
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-class', '班级分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectClass', 50,2);
|
|
VALUES ('exam_report_subject-class', '班级分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectClass', 50,2);
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-objective_question', '客观题分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectQuestion', 60,2);
|
|
VALUES ('exam_report_subject-objective_question', '客观题分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectQuestion', 60,2);
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-subjective_question', '主观题分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectQuestion', 70,2);
|
|
VALUES ('exam_report_subject-subjective_question', '主观题分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectQuestion', 70,2);
|
|
-INSERT INTO stmms_ft.`b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
|
|
|
|
+INSERT INTO `b_privilege` ( `code`, `name`, `parent_code`, `privilege_type`, `privilege_uri`, `seq`,`level`)
|
|
VALUES ('exam_report_subject-group', '大题分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectGroup', 80,2);
|
|
VALUES ('exam_report_subject-group', '大题分析', 'exam_report_subject', 'PAGE', '/admin/exam/reportSubjectGroup', 80,2);
|
|
|
|
|
|
INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
|
|
INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
|
|
@@ -52,45 +52,45 @@ VALUES ('exam_mark-group-help_video', '帮助视频', 'exam_mark-group', 'BUTTON
|
|
INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
|
|
INSERT INTO `b_privilege` (`code`, `name`, `parent_code`, `privilege_type`, `level`, `seq`)
|
|
VALUES ('exam_inspected_info-list-help_video', '帮助视频', 'exam_inspected_info-list', 'BUTTON', 3, 2);
|
|
VALUES ('exam_inspected_info-list-help_video', '帮助视频', 'exam_inspected_info-list', 'BUTTON', 3, 2);
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'SCHOOL_ADMIN',p.`code`,1 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'SCHOOL_ADMIN',p.`code`,1 from b_privilege p join b_school s
|
|
where p.`code` in('overview','exam_report_subject','exam_report_subject-total','exam_report_subject-range','exam_report_subject-college',
|
|
where p.`code` in('overview','exam_report_subject','exam_report_subject-total','exam_report_subject-range','exam_report_subject-college',
|
|
'exam_report_subject-teacher','exam_report_subject-class'
|
|
'exam_report_subject-teacher','exam_report_subject-class'
|
|
,'exam_report_subject-objective_question','exam_report_subject-subjective_question','exam_report_subject-group');
|
|
,'exam_report_subject-objective_question','exam_report_subject-subjective_question','exam_report_subject-group');
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'SUBJECT_HEADER',p.`code`,1 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'SUBJECT_HEADER',p.`code`,1 from b_privilege p join b_school s
|
|
where p.`code` in('exam_report_subject','exam_report_subject-total','exam_report_subject-range','exam_report_subject-college',
|
|
where p.`code` in('exam_report_subject','exam_report_subject-total','exam_report_subject-range','exam_report_subject-college',
|
|
'exam_report_subject-teacher','exam_report_subject-class'
|
|
'exam_report_subject-teacher','exam_report_subject-class'
|
|
,'exam_report_subject-objective_question','exam_report_subject-subjective_question','exam_report_subject-group'
|
|
,'exam_report_subject-objective_question','exam_report_subject-subjective_question','exam_report_subject-group'
|
|
,'exam_mark-group-help_video','exam_inspected_info-list-help_video');
|
|
,'exam_mark-group-help_video','exam_inspected_info-list-help_video');
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'COLLEGE_ADMIN',p.`code`,1 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'COLLEGE_ADMIN',p.`code`,1 from b_privilege p join b_school s
|
|
where p.`code` in('exam_report_subject','exam_report_subject-total','exam_report_subject-range','exam_report_subject-college',
|
|
where p.`code` in('exam_report_subject','exam_report_subject-total','exam_report_subject-range','exam_report_subject-college',
|
|
'exam_report_subject-teacher','exam_report_subject-class'
|
|
'exam_report_subject-teacher','exam_report_subject-class'
|
|
,'exam_report_subject-objective_question','exam_report_subject-subjective_question','exam_report_subject-group',
|
|
,'exam_report_subject-objective_question','exam_report_subject-subjective_question','exam_report_subject-group',
|
|
'exam_mark-group-help_video','exam_inspected_info-list-help_video');
|
|
'exam_mark-group-help_video','exam_inspected_info-list-help_video');
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'SCHOOL_VIEWER',p.`code`,1 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'SCHOOL_VIEWER',p.`code`,1 from b_privilege p join b_school s
|
|
where p.`code` in('exam_report_subject','exam_report_subject-total');
|
|
where p.`code` in('exam_report_subject','exam_report_subject-total');
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'SCHOOL_ADMIN',p.`code`,1 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'SCHOOL_ADMIN',p.`code`,1 from b_privilege p join b_school s
|
|
where p.`code` in('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit'
|
|
where p.`code` in('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit'
|
|
,'exam_mark-group-delete','user_list-help_video','exam_mark-group-help_video','exam_inspected_info-list-help_video');
|
|
,'exam_mark-group-delete','user_list-help_video','exam_mark-group-help_video','exam_inspected_info-list-help_video');
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'SUBJECT_HEADER',p.`code`,0 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'SUBJECT_HEADER',p.`code`,0 from b_privilege p join b_school s
|
|
where p.`code` in('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit','exam_mark-group-delete');
|
|
where p.`code` in('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit','exam_mark-group-delete');
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'COLLEGE_ADMIN',p.`code`,0 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'COLLEGE_ADMIN',p.`code`,0 from b_privilege p join b_school s
|
|
where p.`code` in('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit','exam_mark-group-delete');
|
|
where p.`code` in('exam_mark-group-add','exam_mark-group-edit','exam_mark-group-reset_edit','exam_mark-group-delete');
|
|
|
|
|
|
-INSERT INTO stmms_ft.b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
-SELECT s.id,'INSPECTOR',p.`code`,1 from stmms_ft.b_privilege p join stmms_ft.b_school s
|
|
|
|
|
|
+INSERT INTO b_role_privilege (`school_id`, `role_code`, `privilege_code`,`enable`)
|
|
|
|
+SELECT s.id,'INSPECTOR',p.`code`,1 from b_privilege p join b_school s
|
|
where p.`code` in('exam_inspected_info-list-help_video');
|
|
where p.`code` in('exam_inspected_info-list-help_video');
|
|
|
|
|
|
|
|
|