xiangpei
2024-05-30 0e5a8aec6cdd998e1db7f5aa8e1b020f1c97573a
src/main/resources/mapper/DepartmentMapper.xml
@@ -41,8 +41,8 @@
            t_department td
        WHERE
            td.deleted = 0
            <if test="deptId != null">
                AND td.id = #{deptId}
            <if test="deptId != null and deptId.size() > 0">
                AND td.id in <foreach collection="deptId" item="item" index="index" open="(" separator="," close=")"> #{item} </foreach>
            </if>
    </select>