智慧保安后台管理-外网项目备份
guoshilong
2023-12-21 13a36aebbe6d9d3d953851c1b433b3d3888928e6
src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml
@@ -8,6 +8,20 @@
    </select>
    <select id="getList" resultType="org.springblade.modules.location.vo.LivePersonLocationVO">
        SELECT lpl.* FROM sys_live_person_location lpl
        SELECT
            lpl.*,
            bu.real_name as realName,
            bu.avatar,
            bd.dept_name as deptName,
            sdu.name as dispatchCompany,
            sd.dispatcherTime as dispatchStartTime,
            sd.end_time as dispatchEndTime
        FROM sys_live_person_location lpl
        LEFT JOIN blade_user bu ON bu.id = lpl.user_id
        LEFT JOIN blade_dept bd ON bd.id = bu.dept_id
        LEFT JOIN sys_dispatcher sd ON sd.user_ids = bu.id
        LEFT JOIN sys_dispatcher_unit sdu ON sdu.id = sd.dispatcher_unit_id
        WHERE 1=1
    </select>
</mapper>