| | |
| | | </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 |
| | |
| | | <if test="liveLocation.endTime!=null and liveLocation.endTime!=''"> |
| | | and sl.record_time <= #{liveLocation.endTime} |
| | | </if> |
| | | order by sl.record_time desc |
| | | |
| | | </select> |
| | | </mapper> |