| | |
| | | package com.yssh.utils; |
| | | |
| | | import java.awt.geom.Point2D; |
| | | import java.text.SimpleDateFormat; |
| | | import java.util.*; |
| | | |
| | | import com.yssh.entity.Coordinate; |
| | |
| | | return ids; |
| | | } |
| | | |
| | | /** |
| | | * 根据范围获取查询条件 |
| | | */ |
| | | public static String getFilterByExtend(MonitorPointPosition point, int range) { |
| | | Integer x = point.getX(); |
| | | Integer y = point.getY(); |
| | | |
| | | return String.format("x between %d and %d and y between %d and %d", x - range / 2, x + range / 2, y - range / 2, y + range / 2); |
| | | } |
| | | |
| | | public static List<String> temporary(MonitorPointPosition point, int range) { |
| | | List<String> ids3d = new ArrayList<>(); |
| | | Integer x = point.getX(); |