Browse Source

试题答案判断

tags/正式版本
王宁 2 years ago
parent
commit
0bbe2dd6c1

+ 4
- 5
sstudy/src/main/java/com/xhkjedu/sstudy/controller/question/QuestionController.java View File

@@ -5,14 +5,13 @@ import com.github.pagehelper.PageInfo;
5 5
 import com.xhkjedu.sstudy.model.question.TQuestion;
6 6
 import com.xhkjedu.sstudy.model.question.TQuestionCollect;
7 7
 import com.xhkjedu.sstudy.service.question.QuestionService;
8
+import com.xhkjedu.sstudy.vo.question.QuestionCollectVo;
9
+import com.xhkjedu.sstudy.vo.question.QuestionVo;
10
+import com.xhkjedu.sstudy.vo.system.CollectVo;
8 11
 import com.xhkjedu.utils.N_Utils;
9 12
 import com.xhkjedu.utils.PageUtil;
10 13
 import com.xhkjedu.vo.PageResult;
11 14
 import com.xhkjedu.vo.ResultVo;
12
-import com.xhkjedu.sstudy.vo.question.QuestionCollectVo;
13
-import com.xhkjedu.sstudy.vo.question.QuestionVo;
14
-import com.xhkjedu.sstudy.vo.question.SelectQuestionVo;
15
-import com.xhkjedu.sstudy.vo.system.CollectVo;
16 15
 import org.springframework.util.CollectionUtils;
17 16
 import org.springframework.web.bind.annotation.PostMapping;
18 17
 import org.springframework.web.bind.annotation.RequestBody;
@@ -101,7 +100,7 @@ public class QuestionController {
101 100
     @PostMapping("/add")
102 101
     public ResultVo add(@RequestBody TQuestion question) {
103 102
         N_Utils.validation(new Object[]{
104
-                question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",2
103
+                question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",1
105 104
                 ,question.getScore(),"试题分值",1,question.getComplexity(),"试题难易度",1
106 105
                 ,question.getQtypeid(),"试题题型id",2,question.getBelong(),"试题归属",1
107 106
         });

+ 1
- 1
sstudy/src/main/java/com/xhkjedu/sstudy/service/question/QuestionService.java View File

@@ -182,7 +182,7 @@ public class QuestionService {
182 182
      **/
183 183
     public void updateQuestion(TQuestion question) {
184 184
         N_Utils.validation(new Object[]{
185
-                question.getQstem(),"试题题干",2,question.getQanswer(),"试题答案",2
185
+                question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",1
186 186
                 ,question.getScore(),"试题分值",1,question.getComplexity(),"试题难易度",1
187 187
                 ,question.getQtypeid(),"试题题型id",2,question.getQuestionid(),"试题id",2
188 188
         });

Loading…
Cancel
Save