龚焕茏
2024-05-16 ded4f0891dd2a76f36844d7c220155e3cd1e6918
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>