处理轨迹列表查询问题

This commit is contained in:
wanggeng 2021-12-01 15:01:11 +08:00
parent 619258dea9
commit a3fa8f8eb8
3 changed files with 3 additions and 3 deletions

View File

@ -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<UserLocationDTO> list(@PathVariable("userId") String userId,
@PathVariable("startTime") String startTime,
@PathVariable("endTime") String endTime) {

View File

@ -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)) {

View File

@ -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