From d35389e7e901d134d9054e75f59dd9f4cc24cb24 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Thu, 22 Jul 2021 16:30:58 +0800
Subject: [PATCH] 指令接口修改,定位接口修改

---
 src/main/java/org/springblade/modules/location/mapper/LiveLocationMapper.xml |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/main/java/org/springblade/modules/location/mapper/LiveLocationMapper.xml b/src/main/java/org/springblade/modules/location/mapper/LiveLocationMapper.xml
index af7a13f..62c144e 100644
--- a/src/main/java/org/springblade/modules/location/mapper/LiveLocationMapper.xml
+++ b/src/main/java/org/springblade/modules/location/mapper/LiveLocationMapper.xml
@@ -34,6 +34,23 @@
         </if>
     </select>
 
+    <!--获取实时位置信息-->
+    <select id="getLiveLocationInfo" resultType="org.springblade.modules.location.entity.LiveLocation">
+        SELECT
+        *
+        FROM
+        sys_live_location
+        WHERE
+        1=1
+        <if test="liveLocation.type!=null">
+            and type = #{liveLocation.type}
+        </if>
+        <if test="liveLocation.workerId!=null and liveLocation.workerId!=''">
+            and worker_id = #{liveLocation.workerId}
+        </if>
+    </select>
+
+
     <!--获取轨迹数据-->
     <select id="getLocusInfoList" resultType="org.springblade.modules.location.vo.LocusVo">
         select

--
Gitblit v1.9.3