Преглед на файлове

修改整数效验提交

zsy преди 1 година
родител
ревизия
bc881d7d16
променени са 2 файла, в които са добавени 3 реда и са изтрити 1 реда
  1. 1 1
      src/main/java/com/rf/kjb/chat/dao/domain/ChatAnswerEntity.java
  2. 2 0
      src/main/java/com/rf/kjb/chat/rest/ChatController.java

+ 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");
                 }