#增加路径返回cell

This commit is contained in:
2026-11-25 16:29:08 +08:00
parent 69b5d080ce
commit 6e472107d4
5 changed files with 45 additions and 10 deletions

View File

@@ -7,6 +7,8 @@ public class LatAndLngEntity {
private double lat;
private double lng;
private int cell;
@Override
public String toString() {
return "{" + lat + "," + lng + '}';

View File

@@ -17,11 +17,22 @@ import com.maibu.mybatis.mapper.BaseMapperX;
@Repository
public interface DevicePlanTaskMapper extends BaseMapperX<DevicePlanTask> {
@Select("SELECT t.*, iwr.work_name,d.device_alias " +
// @Select("SELECT t.*, iwr.work_name,d.device_alias " +
// "FROM iot_device_task t " +
// "LEFT JOIN iot_device d ON d.serial_number = t.device_id " +
// "left join iot_work_record iwr on t.route_id = iwr.id " +
// "${ew.customSqlSegment}")
// List<DevicePlanTask> selectTaskHistoryWithDeviceAlias(
// @Param(Constants.WRAPPER) Wrapper<DevicePlanTask> wrapper);
@Select("SELECT t.*, iwr.work_name, d.device_alias " +
"FROM iot_device_task t " +
"LEFT JOIN iot_device d ON d.serial_number = t.device_id " +
"left join iot_work_record iwr on t.route_id = iwr.id " +
"${ew.customSqlSegment}")
"LEFT JOIN iot_work_record iwr ON t.route_id = iwr.id " +
"${ew.customSqlSegment} " +
"ORDER BY " +
"t.create_time IS NULL ASC, t.create_time DESC, " +
"t.finish_time IS NULL ASC, t.finish_time DESC")
List<DevicePlanTask> selectTaskHistoryWithDeviceAlias(
@Param(Constants.WRAPPER) Wrapper<DevicePlanTask> wrapper);

View File

@@ -26,7 +26,7 @@ public class GlobalMemory {
// key:orgId - siteId
public static ConcurrentHashMap<Long, Map<Long, SiteMemory>> orgAttrs = new ConcurrentHashMap<>();
public static ConcurrentHashMap<Long, List<LatAndLngEntity>> taskPathMap = new ConcurrentHashMap<>();
public static ConcurrentHashMap<Long, List<List<LatAndLngEntity>>> taskPathMap = new ConcurrentHashMap<>();
public static InfluxDBUtil influxDBUtil;