|
|
@@ -370,6 +370,9 @@ public class CommonServiceImpl implements CommonService {
|
|
|
}
|
|
|
clientIds.add(truckSimCard.getSimCard());
|
|
|
}
|
|
|
+
|
|
|
+ log.info("getLocations clientIds:{}", JSON.toJSONString(clientIds));
|
|
|
+
|
|
|
Query query = new Query(Criteria.where("clientId").in(clientIds).and("messageId").is(512));
|
|
|
query.with(new Sort(Sort.Direction.DESC, "dateTime"));
|
|
|
|
|
|
@@ -413,7 +416,7 @@ public class CommonServiceImpl implements CommonService {
|
|
|
Map<String, LocationVO> result = new HashMap();
|
|
|
for (TmsMongoDoc doc : tmsMongoDocs) {
|
|
|
for (int i=0;i<clientIds.size();i++) {
|
|
|
- if (clientIds.get(i).equals(doc.getClientId())) {
|
|
|
+ if (StringUtils.isNotBlank(doc.getClientId()) && clientIds.get(i).equals(doc.getClientId())) {
|
|
|
LocationVO location = new LocationVO();
|
|
|
location.setLatitude(doc.getLatitude() + "");
|
|
|
location.setLongitude(doc.getLongitude() + "");
|