浏览代码

联考版-迭代

xiaof 4 年之前
父节点
当前提交
862aefaca9

+ 1 - 0
sql/msyj-20210628.sql

@@ -445,6 +445,7 @@ CREATE TABLE `param_setting`  (
   `score_show_all_paper` tinyint(1) NULL DEFAULT NULL COMMENT '打分阶段阅卷员是否显示所有试卷(1:是、0:否)',
   `prop_denominator` int(2) NULL DEFAULT NULL COMMENT '档位百分比分母(1: \"全部考生数\", 2: \"去掉缺考考生数\")',
   `auto_callback_show_deviation` tinyint(1) NULL DEFAULT NULL COMMENT '自动打回时显示偏差',
+  `show_standard_paper_manage` tinyint(1) DEFAULT NULL COMMENT '是否显示标准卷管理,默认1,1-是,0-否',
   PRIMARY KEY (`id`) USING BTREE
 ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8 COLLATE = utf8_general_ci COMMENT = '参数设置' ROW_FORMAT = Dynamic;
 

+ 3 - 1
stmms-ms-admin/src/main/java/cn/com/qmth/stmms/ms/admin/api/ParamApi.java

@@ -123,7 +123,8 @@ public class ParamApi {
                                            @RequestParam Integer cumulativeError,
                                            @RequestParam Integer levelShowAllPaper,
                                            @RequestParam Integer propDenominator,
-                                           @RequestParam Integer autoCallbackShowDeviation) {
+                                           @RequestParam Integer autoCallbackShowDeviation,
+                                           @RequestParam Integer showStandardPaperManage) {
         List<MarkSubject> markSubjects = markSubjectRepo.findByWorkIdAndTestNotIn(workId, Arrays.asList(TrialEnum.DEFAULT.ordinal(), TrialEnum.START_FORMAL.ordinal()));
         int countMarkTasks = markTaskRepo.countByWorkId(workId);
         boolean flag = false;
@@ -149,6 +150,7 @@ public class ParamApi {
         paramSetting.setLevelShowAllPaper(levelShowAllPaper);
         paramSetting.setPropDenominator(propDenominator);
         paramSetting.setAutoCallbackShowDeviation(autoCallbackShowDeviation);
+        paramSetting.setShowStandardPaperManage(showStandardPaperManage);
         paramSettingRepo.saveAndFlush(paramSetting);
         ParamCache.resetParam(paramSetting);
 

+ 11 - 0
stmms-ms-core/src/main/java/cn/com/qmth/stmms/ms/core/domain/ParamSetting.java

@@ -46,6 +46,8 @@ public class ParamSetting implements Serializable {
 
     private Integer autoCallbackShowDeviation;
 
+    private Integer showStandardPaperManage;
+
 
     public static ParamSetting init(){
         ParamSetting paramSetting = new ParamSetting();
@@ -63,6 +65,7 @@ public class ParamSetting implements Serializable {
         paramSetting.setScoreShowAllPaper(0);
         paramSetting.setPropDenominator(1);
         paramSetting.setAutoCallbackShowDeviation(1);
+        paramSetting.setShowStandardPaperManage(1);
         return paramSetting;
     }
 
@@ -193,4 +196,12 @@ public class ParamSetting implements Serializable {
     public void setAutoCallbackShowDeviation(Integer autoCallbackShowDeviation) {
         this.autoCallbackShowDeviation = autoCallbackShowDeviation;
     }
+
+    public Integer getShowStandardPaperManage() {
+        return showStandardPaperManage;
+    }
+
+    public void setShowStandardPaperManage(Integer showStandardPaperManage) {
+        this.showStandardPaperManage = showStandardPaperManage;
+    }
 }