From 1cbb3ed5c0c412cd407b7d32e7978f491857d670 Mon Sep 17 00:00:00 2001
From: 13693261870 <252740454@qq.com>
Date: 星期一, 31 七月 2023 14:43:52 +0800
Subject: [PATCH] 1

---
 src/main/java/com/yssh/utils/CalculateUtils.java |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/src/main/java/com/yssh/utils/CalculateUtils.java b/src/main/java/com/yssh/utils/CalculateUtils.java
index 73871a4..6eefb01 100644
--- a/src/main/java/com/yssh/utils/CalculateUtils.java
+++ b/src/main/java/com/yssh/utils/CalculateUtils.java
@@ -210,6 +210,16 @@
 		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();

--
Gitblit v1.9.3