浏览代码

修改整数效验提交

zsy 1 年之前
父节点
当前提交
bc881d7d16

+ 1 - 1
src/main/java/com/rf/kjb/chat/dao/domain/ChatAnswerEntity.java

@@ -28,7 +28,7 @@ public class ChatAnswerEntity extends BaseEntry {
     @Column(name = "next_question_no",columnDefinition = "varchar(50) not null comment '下一个问题编号'")
     private String nextQuestionNo;
 
-    @Column(name = "question_type",columnDefinition = "varchar(2) not null comment '题目类型:0 选择题 1填空题 2跳转路由'")
+    @Column(name = "question_type",columnDefinition = "varchar(2) not null comment '题目类型:0 选择题 1填空题 2跳转路由 3整数(0-100)'")
     private String questionType;
 
     @Column(name = "answer",columnDefinition = "varchar(200) not null comment '答案信息'")

+ 2 - 0
src/main/java/com/rf/kjb/chat/rest/ChatController.java

@@ -278,6 +278,8 @@ public class ChatController extends BaseController {
                     chatQuestionEntity.setQuestionType("1");
                 } else if (questionType.equals("多选")) {
                     chatQuestionEntity.setQuestionType("2");
+                } else if (questionType.equals("整数")) {
+                    chatQuestionEntity.setQuestionType("3");
                 } else {
                     chatQuestionEntity.setQuestionType("0");
                 }