From 62eb499b0c969f246d3245d1429a97da4de1ce28 Mon Sep 17 00:00:00 2001
From: 钟日健 <arsn163@163.com>
Date: Mon, 01 Jun 2026 20:46:13 +0800
Subject: [PATCH] feat: 成绩查询增加年龄查询返回

---
 src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml |   16 +++++++++++++++-
 1 files changed, 15 insertions(+), 1 deletions(-)

diff --git a/src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml b/src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml
index 462a67a..044c654 100644
--- a/src/main/java/org/springblade/modules/location/mapper/LivePersonLocationMapper.xml
+++ b/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 and DATE_FORMAT(lpl.record_time,'%Y-%m-%d') >=DATE_FORMAT(NOW(),'%Y-%m-%d')
+
     </select>
 </mapper>

--
Gitblit v1.9.3