瀏覽代碼

试题接口列表加入题库类型参数

zhaosongshan 7 月之前
父節點
當前提交
113ad0c129

+ 1 - 1
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/domain/Question.java

@@ -51,7 +51,7 @@ public class Question implements Serializable {
     private Integer infoTextContentId;
 
     /**
-     * 题库类型
+     * 题库类型 1练习题目库  2问卷题目库
      */
     private String bankType;
 

+ 3 - 0
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/mapper/mapping/QuestionMapper.xml

@@ -212,6 +212,9 @@
       <if test="bo.content != null">
         and info_text_content_id in (SELECT id FROM t_text_content WHERE content like concat('%',#{bo.content},'%') )
       </if>
+      <if test="bo.bankType != null">
+        and bank_type = #{bo.bankType}
+      </if>
     </where>
     order by create_time desc
   </select>