src/main/resources/mybatis/query-template/department-template.xml
@@ -49,6 +49,14 @@ <if test="id != '' and id != null"> AND ud.user_id = #{id} </if> <choose> <when test="excludeIds != null and excludeIds.size != 0"> AND d.id NOT IN <foreach collection="excludeIds" item="item" index="index" separator="," open="(" close=")"> #{item} </foreach> </when> </choose> </select>