From a3fa8f8eb8a14666e253a6e23bf64c25b377324f Mon Sep 17 00:00:00 2001 From: wanggeng <450292408@qq.com> Date: Wed, 1 Dec 2021 15:01:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=84=E7=90=86=E8=BD=A8=E8=BF=B9=E5=88=97?= =?UTF-8?q?=E8=A1=A8=E6=9F=A5=E8=AF=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../userrealtimelocation/UserRealtimeLocationController.java | 2 +- .../impl/UserRealtimeLocationServiceImpl.java | 2 +- src/main/resources/application-test.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/cn/com/tenlion/usercenter/controller/api/userrealtimelocation/UserRealtimeLocationController.java b/src/main/java/cn/com/tenlion/usercenter/controller/api/userrealtimelocation/UserRealtimeLocationController.java index 2231e36..6bf97af 100644 --- a/src/main/java/cn/com/tenlion/usercenter/controller/api/userrealtimelocation/UserRealtimeLocationController.java +++ b/src/main/java/cn/com/tenlion/usercenter/controller/api/userrealtimelocation/UserRealtimeLocationController.java @@ -49,7 +49,7 @@ public class UserRealtimeLocationController extends DefaultBaseController { @ApiImplicitParam(name = "endTime", value = "结束时间", paramType = "query", dataType = "String", required = true) }) @ApiResponses({@ApiResponse(code = 400, message = "请求失败", response = ErrorResult.class)}) - @GetMapping("list/{startTime}/{endTime}") + @GetMapping("list/{userId}/{startTime}/{endTime}") public List list(@PathVariable("userId") String userId, @PathVariable("startTime") String startTime, @PathVariable("endTime") String endTime) { 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 a613c37..7429637 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 @@ -127,7 +127,7 @@ public class UserRealtimeLocationServiceImpl extends DefaultBaseService implemen query.addCriteria(criteria); } if (!StringUtils.isBlank(userId)) { - query.addCriteria(Criteria.where("uerId").is(userId)); + query.addCriteria(Criteria.where("creator").is(userId)); } String keywords = getKeywords(params); if (!StringUtils.isBlank(keywords)) { diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index b7aa030..1c87b06 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -57,7 +57,7 @@ spring: uri: mongodb://smartcity:smartcity@192.168.0.156:27017/smartcity redis: database: 6 - host: 127.0.0.1 + host: 192.168.0.156 port: 6379 password: 666 timeout: 3000ms