ting.yin 5 年之前
父節點
當前提交
e13079060f

+ 13 - 0
stmms-web/src/main/java/cn/com/qmth/stmms/common/controller/BaseController.java

@@ -8,6 +8,7 @@ import org.springframework.beans.propertyeditors.CustomBooleanEditor;
 import org.springframework.web.bind.WebDataBinder;
 import org.springframework.web.bind.annotation.InitBinder;
 
+import cn.com.qmth.stmms.common.enums.CheckType;
 import cn.com.qmth.stmms.common.enums.ExamSubjectStatus;
 import cn.com.qmth.stmms.common.enums.MarkMode;
 import cn.com.qmth.stmms.common.enums.ScanCheck;
@@ -92,6 +93,18 @@ public abstract class BaseController {
                 }
             }
         });
+        //CheckType 类型转换
+        binder.registerCustomEditor(CheckType.class, new PropertyEditorSupport() {
+
+            @Override
+            public void setAsText(String text) {
+                try {
+                    setValue(CheckType.findByValue(Integer.valueOf(text)));
+                } catch (Exception e) {
+                    setValue(null);
+                }
+            }
+        });
 
         binder.registerCustomEditor(Boolean.class, new CustomBooleanEditor(true));
     }

+ 1 - 0
stmms-web/src/main/webapp/WEB-INF/views/modules/exam/checkStudent.jsp

@@ -11,6 +11,7 @@
 	<ul class="nav nav-tabs">
 		<li><a href="${ctx}/admin/exam/check/answer">识别结果检查</a></li>
 		<li><a href="${ctx}/admin/exam/check/image">图片检查</a></li>
+		<li><a href="${ctx}/admin/exam/check/score">分数检查</a></li>
 		<li class="active"><a href="${ctx}/admin/exam/check/student">人工确认</a></li>
 	</ul>
 	<form id="searchForm" action="${ctx}/admin/exam/check/student" method="post" class="breadcrumb form-search">