瀏覽代碼

知识点允许不限类型或任一类型

mingfu 2 周之前
父節點
當前提交
8b62013f0d
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      ie-system/src/main/resources/mapper/learn/LearnKnowledgeTreeMapper.xml

+ 1 - 1
ie-system/src/main/resources/mapper/learn/LearnKnowledgeTreeMapper.xml

@@ -32,7 +32,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
             <if test="level != null "> and level = #{level}</if>
             <if test="questionsCount != null "> and questionsCount = #{questionsCount}</if>
             <if test="locations != null  and locations != ''"> and locations = #{locations}</if>
-            <if test="examineeTypes != null  and examineeTypes != ''"> and examineeTypes = #{examineeTypes}</if>
+            <if test="examineeTypes != null  and examineeTypes != ''"> and (examineeTypes is null or find_in_set(#{examineeTypes}, examineeTypes))</if>
         </where>
     </select>