#增加路径返回cell
This commit is contained in:
@@ -7,6 +7,8 @@ public class LatAndLngEntity {
|
||||
private double lat;
|
||||
private double lng;
|
||||
|
||||
private int cell;
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "{" + lat + "," + lng + '}';
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user