智慧保安后台管理项目备份
Administrator
2021-07-22 d35389e7e901d134d9054e75f59dd9f4cc24cb24
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
@@ -58,6 +75,7 @@
        <if test="liveLocation.endTime!=null and liveLocation.endTime!=''">
            and sl.record_time &lt;= #{liveLocation.endTime}
        </if>
        order by sl.record_time desc
    </select>
</mapper>