From 143b8dfe78086c5ad70effdc1d01b396c4da5d2a Mon Sep 17 00:00:00 2001 From: luyan Date: Mon, 28 Aug 2023 14:54:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B=E8=BD=AC=E6=8D=A2=E9=94=99=E8=AF=AF=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/CommunityCanteenServiceImpl.java | 40 +++++++++---------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/CommunityCanteenServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/CommunityCanteenServiceImpl.java index 57e5c4a73e..5a89847c0e 100755 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/CommunityCanteenServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/CommunityCanteenServiceImpl.java @@ -188,8 +188,8 @@ public class CommunityCanteenServiceImpl extends BaseServiceImpl page = baseDao.selectPage(getPage(new HashMap<>()), wrapper); PageData pageData = getPageData(page, CommunityCanteenDTO.class); @@ -201,8 +201,8 @@ public class CommunityCanteenServiceImpl extends BaseServiceImpl() { - @Override - public int compare(Point o1, Point o2) { - double tempLon = 0.0; - double tempLan = 0.0; - if (o1.getLongitude() - coordinate.getLongitude() < 0) { - tempLon = o1.getLongitude(); - } - if (o2.getLongitude() - coordinate.getLongitude() < 0) { - - } - return 0; - } - }); - } +// if (!CollectionUtils.isEmpty(points)) { +// Point result = Collections.min(points, new Comparator() { +// @Override +// public int compare(Point o1, Point o2) { +// double tempLon = 0.0; +// double tempLan = 0.0; +// if (o1.getLongitude() - coordinate.getLongitude() < 0) { +// tempLon = o1.getLongitude(); +// } +// if (o2.getLongitude() - coordinate.getLongitude() < 0) { +// +// } +// return 0; +// } +// }); +// } return pageData; }