#
luxiaotao1123
2024-02-21 7d3040d4c742af5e13f7327e7397a0524c1ffdec
zy-asrs-wcs/src/main/resources/mapper/system/UserMapper.xml
@@ -13,4 +13,16 @@
        </if>
    </select>
    <select id="selectPageRel" resultType="com.zy.asrs.wcs.system.entity.User">
        select
        su.*
        from sys_user su
        left join sys_dept sd on su.dept_id = sd.id
        where 1=1
        <if test="param.deptId != null">
            and (FIND_IN_SET(#{param.deptId}, sd.`path`) OR sd.`id` = #{param.deptId})
        </if>
        order by su.create_time desc
    </select>
</mapper>