Selaa lähdekoodia

fit 身份证集合sql遍历

tanzh 3 vuotta sitten
vanhempi
commit
83f0ebdbd5

+ 1 - 1
zhongzheng-system/src/main/resources/mapper/modules/grade/ClassGradeMapper.xml

@@ -393,7 +393,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
         <if test="idCard != null and idCard != ''">
             AND u.id_card = #{idCard}
         </if>
-        <if test="idCards != null and idCards.size() = 0">
+        <if test="idCards != null and idCards.size() != 0">
             AND u.id_card IN
             <foreach collection="idCards" item="item" index="index" open="(" close=")" separator=",">
             #{item}