Kaynağa Gözat

错题 收藏添加字段

小么熊🐻 3 yıl önce
ebeveyn
işleme
f1b4654073

+ 11 - 31
jkt-service/src/main/java/com/miaxis/question/domain/QuestionCollection.java

@@ -41,36 +41,16 @@ public class QuestionCollection extends BaseBusinessEntity{
     @ApiModelProperty(value = "题目ID")
     private Long questionId;
 
-    public void setId(Long id){
-        this.id = id;
-    }
 
-    public Long getId(){
-        return id;
-    }
-    public void setUserId(Long userId){
-        this.userId = userId;
-    }
-
-    public Long getUserId(){
-        return userId;
-    }
-    public void setQuestionId(Long questionId){
-        this.questionId = questionId;
-    }
-
-    public Long getQuestionId(){
-        return questionId;
-    }
-
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("userId", getUserId())
-            .append("questionId", getQuestionId())
-            .append("createTime", getCreateTime())
-            .append("updateTime", getUpdateTime())
-            .toString();
-    }
+    /** 科目 */
+    @Excel(name = "科目")
+    @TableField("km")
+    @ApiModelProperty(value = "科目")
+    private Long km;
+
+    /** 车型 */
+    @Excel(name = "车型")
+    @TableField("car_type")
+    @ApiModelProperty(value = "车型")
+    private Long carType;
 }

+ 10 - 28
jkt-service/src/main/java/com/miaxis/question/domain/QuestionWrong.java

@@ -41,36 +41,18 @@ public class QuestionWrong extends BaseBusinessEntity{
     @ApiModelProperty(value = "题目ID")
     private Long questionId;
 
-    public void setId(Long id){
-        this.id = id;
-    }
 
-    public Long getId(){
-        return id;
-    }
-    public void setUserId(Long userId){
-        this.userId = userId;
-    }
+    /** 科目 */
+    @Excel(name = "科目")
+    @TableField("km")
+    @ApiModelProperty(value = "科目")
+    private Long km;
 
-    public Long getUserId(){
-        return userId;
-    }
-    public void setQuestionId(Long questionId){
-        this.questionId = questionId;
-    }
+    /** 车型 */
+    @Excel(name = "车型")
+    @TableField("car_type")
+    @ApiModelProperty(value = "车型")
+    private Long carType;
 
-    public Long getQuestionId(){
-        return questionId;
-    }
 
-    @Override
-    public String toString() {
-        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
-            .append("id", getId())
-            .append("userId", getUserId())
-            .append("questionId", getQuestionId())
-            .append("createTime", getCreateTime())
-            .append("updateTime", getUpdateTime())
-            .toString();
-    }
 }

+ 9 - 2
jkt-service/src/main/java/com/miaxis/question/dto/QuestionCollectionDTO.java

@@ -1,6 +1,8 @@
 package com.miaxis.question.dto;
 
 
+import com.baomidou.mybatisplus.annotation.TableField;
+import com.miaxis.common.annotation.Excel;
 import io.swagger.annotations.ApiModelProperty;
 import lombok.Data;
 
@@ -17,11 +19,16 @@ public class QuestionCollectionDTO {
 
 
 
-
     /** 题目ID */
-
     @ApiModelProperty(value = "题目ID",required=true)
     private Long questionId;
 
+    /** 科目 */
+    @ApiModelProperty(value = "科目",required=true)
+    private Long km;
+
+    /** 车型 */
+    @ApiModelProperty(value = "车型",required=true)
+    private Long carType;
 
 }

+ 8 - 0
jkt-service/src/main/java/com/miaxis/question/dto/QuestionWrongDTO.java

@@ -22,4 +22,12 @@ public class QuestionWrongDTO {
     @ApiModelProperty(value = "题目ID")
     private Long questionId;
 
+    /** 科目 */
+    @ApiModelProperty(value = "科目",required=true)
+    private Long km;
+
+    /** 车型 */
+    @ApiModelProperty(value = "车型",required=true)
+    private Long carType;
+
 }