Bladeren bron

新规取题

小么熊🐻 2 jaren geleden
bovenliggende
commit
103acc21a4

+ 6 - 0
jpcj-service/src/main/java/com/miaxis/question/domain/QuestionInfo.java

@@ -256,4 +256,10 @@ public class QuestionInfo extends BaseBusinessEntity{
     private Integer diffDegree;
 
 
+    /** 是否新规 */
+    @Excel(name = "是否新规")
+    @TableField("is_new")
+    @ApiModelProperty(value = "是否新规 0否 1是")
+    private Integer isNew;
+
 }

+ 7 - 0
jpcj-service/src/main/java/com/miaxis/question/dto/QuestionInfoDTO.java

@@ -189,4 +189,11 @@ public class QuestionInfoDTO extends BaseBusinessEntity{
     private String diffDegree;
 
 
+    /**
+     * 是否是新规题
+     */
+    @ApiModelProperty(value = "是否是新规题 0否 1是",hidden = true)
+    private Integer isNew;
+
+
 }

+ 4 - 0
jpcj-service/src/main/resources/mapper/question/QuestionInfoMapper.xml

@@ -45,6 +45,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <result property="placeSort"    column="place_sort"    />
         <result property="chapterId"    column="chapter_id"    />
         <result property="diffDegree"    column="diff_degree"    />
+        <result property="isNew"    column="is_new"    />
 
 
     </resultMap>
@@ -87,6 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="subject != null  and subject != ''"> and subject = #{subject}</if>
             <if test="chapterId != null  and chapterId != ''"> and chapter_id = #{chapterId}</if>
             <if test="diffDegree != null  and diffDegree != ''"> and diff_degree = #{diffDegree}</if>
+            <if test="isNew != null  and isNew != ''"> and is_new = #{isNew}</if>
         </where>
 
         <if test="isRand!=null and isRand!=''"> order by rand() </if>
@@ -128,6 +130,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="questionType != null "> and question_type = #{questionType}</if>
             <if test="chapterId != null  and chapterId != ''"> and chapter_id = #{chapterId}</if>
             <if test="diffDegree != null  and diffDegree != ''"> and diff_degree = #{diffDegree}</if>
+            <if test="isNew != null  and isNew != ''"> and is_new = #{isNew}</if>
+
         </where>
         limit 0,50
     </select>