src/main/resources/mybatis/query-template/department-template.xml
@@ -18,6 +18,14 @@ <if test="id != '' and id != null"> AND d.id like CONCAT('%',#{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> <if test="pageSize != '' and pageSize != null"> limit #{pageSize} offset #{page}; </if>