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
 import com.xhkjedu.sstudy.model.question.TQuestion;
5
 import com.xhkjedu.sstudy.model.question.TQuestion;
6
 import com.xhkjedu.sstudy.model.question.TQuestionCollect;
6
 import com.xhkjedu.sstudy.model.question.TQuestionCollect;
7
 import com.xhkjedu.sstudy.service.question.QuestionService;
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
 import com.xhkjedu.utils.N_Utils;
11
 import com.xhkjedu.utils.N_Utils;
9
 import com.xhkjedu.utils.PageUtil;
12
 import com.xhkjedu.utils.PageUtil;
10
 import com.xhkjedu.vo.PageResult;
13
 import com.xhkjedu.vo.PageResult;
11
 import com.xhkjedu.vo.ResultVo;
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
 import org.springframework.util.CollectionUtils;
15
 import org.springframework.util.CollectionUtils;
17
 import org.springframework.web.bind.annotation.PostMapping;
16
 import org.springframework.web.bind.annotation.PostMapping;
18
 import org.springframework.web.bind.annotation.RequestBody;
17
 import org.springframework.web.bind.annotation.RequestBody;
101
     @PostMapping("/add")
100
     @PostMapping("/add")
102
     public ResultVo add(@RequestBody TQuestion question) {
101
     public ResultVo add(@RequestBody TQuestion question) {
103
         N_Utils.validation(new Object[]{
102
         N_Utils.validation(new Object[]{
104
-                question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",2
103
+                question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",1
105
                 ,question.getScore(),"试题分值",1,question.getComplexity(),"试题难易度",1
104
                 ,question.getScore(),"试题分值",1,question.getComplexity(),"试题难易度",1
106
                 ,question.getQtypeid(),"试题题型id",2,question.getBelong(),"试题归属",1
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
      **/
182
      **/
183
     public void updateQuestion(TQuestion question) {
183
     public void updateQuestion(TQuestion question) {
184
         N_Utils.validation(new Object[]{
184
         N_Utils.validation(new Object[]{
185
-                question.getQstem(),"试题题干",2,question.getQanswer(),"试题答案",2
185
+                question.getQstem(),"试题题干",2,question.getQlevel(),"试题类型",1
186
                 ,question.getScore(),"试题分值",1,question.getComplexity(),"试题难易度",1
186
                 ,question.getScore(),"试题分值",1,question.getComplexity(),"试题难易度",1
187
                 ,question.getQtypeid(),"试题题型id",2,question.getQuestionid(),"试题id",2
187
                 ,question.getQtypeid(),"试题题型id",2,question.getQuestionid(),"试题id",2
188
         });
188
         });

Loading…
Cancel
Save