Quellcode durchsuchen

考试增加封面图片

yangfeng vor 1 Jahr
Ursprung
Commit
d14fae68ad

+ 7 - 0
web/src/main/java/com/ynfy/buss/exam/exam/entity/Exam.java

@@ -171,6 +171,13 @@ public class Exam implements Serializable {
     @TableField(exist = false)
     private List<QuestionTypeCountDTO> questionTypeCountList;
 
+    /**
+     * 图片
+     */
+    @Excel(name = "图片", width = 15)
+    @ApiModelProperty(value = "图片")
+    private String image;
+
     /**
      * 是否结束
      *

+ 2 - 0
web/src/main/java/com/ynfy/buss/exam/exam/mapper/xml/ExamMapper.xml

@@ -21,6 +21,7 @@
                 e.reviewer_type,
                 e.question_disorder,
                 e.answer_disorder,
+                e.image,
                 p.id as paper_id,
                 p.title as paperName,
                 p.total_score,
@@ -57,6 +58,7 @@
         <result column="answer_disorder" property="answerDisorder" jdbcType="BOOLEAN"/>
         <result column="reviewer" property="reviewer" jdbcType="VARCHAR"/>
         <result column="reviewer_type" property="reviewerType" jdbcType="INTEGER"/>
+        <result column="image" property="image" jdbcType="VARCHAR"/>
 
         <association property="paper" javaType="com.ynfy.buss.exam.paper.entity.Paper">
             <id column="paper_id" property="id" jdbcType="VARCHAR"/>