wangliang 2 rokov pred
rodič
commit
9adf57b164

+ 6 - 1
distributed-print-business/src/main/resources/db/upgrade/3.2.5/1、升级3.2.5数据库修改脚本.sql

@@ -40,4 +40,9 @@ CREATE TABLE `exam_detail_course_paper_type` (
                                                  `paper_type` VARCHAR(5) NOT NULL COMMENT '卷型',
                                                  PRIMARY KEY (`id`));
 ALTER TABLE `exam_detail_course_paper_type`
-    ADD INDEX `idx_exam_detail_course_id` (`exam_detail_course_id` ASC);
+    ADD INDEX `idx_exam_detail_course_id` (`exam_detail_course_id` ASC);
+
+ALTER TABLE `exam_paper_structure`
+    CHANGE COLUMN `objective_structure` `objective_structure` MEDIUMTEXT NULL DEFAULT NULL COMMENT '客观题试卷结构JSON' ,
+    CHANGE COLUMN `subjective_structure` `subjective_structure` MEDIUMTEXT NULL DEFAULT NULL COMMENT '主观题试卷结构JSON' ,
+    CHANGE COLUMN `paper_info_json` `paper_info_json` MEDIUMTEXT NULL DEFAULT NULL COMMENT '整个试卷信息json(前端提供的全部信息)' ;

+ 3 - 1
distributed-print-business/src/main/resources/db/upgrade/3.2.5/2、升级3.2.5数据修改脚本.sql

@@ -54,4 +54,6 @@ update exam_card t set t.card_rule_id = (select bpc.card_rule_id from basic_prin
                                          where FIND_IN_SET(t.id, REPLACE(REPLACE(substring_index(substring_index(CONVERT((etd.paper_attachment_ids ->>'$[*].cardId') USING utf8), ']', 1), '[',-1),' "','"'),'"','')) )
 where t.type = 'CUSTOM' and t.card_rule_id is null and t.id > 0;
 
-insert into exam_detail_course_paper_type select id + cast(FLOOR(RAND()*10000000000000) as signed), id, paper_type from exam_detail_course where paper_type is not null and id>0;
+insert into exam_detail_course_paper_type select id + cast(FLOOR(RAND()*10000000000000) as signed), id, paper_type from exam_detail_course where paper_type is not null and id>0;
+
+INSERT INTO `sys_privilege` (`id`, `name`, `url`, `type`, `parent_id`, `sequence`, `property`, `enable`, `default_auth`, `front_display`) VALUES ('874', '共用接口-查询学院', '/api/admin/basic/condition/list_college', 'URL', '149', '14', 'SYS', '1', '1', '1');