xiangpei
2024-05-27 b0b59f3d9ee0340268e74e1e7a810e9087372160
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>