From 02782aca977a3892688637965485533608616faf Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Thu, 25 Nov 2021 16:11:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=94=A8=E6=88=B7=E5=AE=9A?= =?UTF-8?q?=E4=BD=8DID?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../impl/UserRealtimeLocationServiceImpl.java | 3 +- .../user-realtime-location/list.html | 40 +------------------ 2 files changed, 3 insertions(+), 40 deletions(-) diff --git a/src/main/java/cn/com/tenlion/usercenter/service/userrealtimelocation/impl/UserRealtimeLocationServiceImpl.java b/src/main/java/cn/com/tenlion/usercenter/service/userrealtimelocation/impl/UserRealtimeLocationServiceImpl.java index 95f73ea..a613c37 100644 --- a/src/main/java/cn/com/tenlion/usercenter/service/userrealtimelocation/impl/UserRealtimeLocationServiceImpl.java +++ b/src/main/java/cn/com/tenlion/usercenter/service/userrealtimelocation/impl/UserRealtimeLocationServiceImpl.java @@ -41,7 +41,8 @@ public class UserRealtimeLocationServiceImpl extends DefaultBaseService implemen @Override public void save(UserLocationVO userLocationVO) { userLocationVO.setGmtCreate(DateUtil.getTime()); - userLocationService.save(userLocationVO.getCreator(), userLocationVO); + String userLocationId = userLocationService.saveAndReturnId(userLocationVO.getCreator(), userLocationVO); + userLocationVO.setUserLocationId(userLocationId); mongoTemplate.insert(userLocationVO, MongoCollectionEnum.USER_REALTIME_LOCATION.getCollection()); } diff --git a/src/main/resources/templates/user-realtime-location/list.html b/src/main/resources/templates/user-realtime-location/list.html index b04a463..2d39c58 100644 --- a/src/main/resources/templates/user-realtime-location/list.html +++ b/src/main/resources/templates/user-realtime-location/list.html @@ -35,12 +35,6 @@