Explorar o código

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

mingfu hai 2 semanas
pai
achega
8b62013f0d

+ 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>