Commit af5e1a57 by 罗志长

fix: 实时状态

parent b7912ad0
......@@ -306,9 +306,9 @@ public class PlatElderRealTimeServiceImpl implements PlatElderRealTimeService {
JSONObject result = JSON.parseObject(entity);
JSONObject properties = (JSONObject)result.get("properties");
Object track = properties.get("track");
List<Integer> list = track == null ? Lists.newArrayList() : (List<Integer>) track;
vo.setX(CollectionUtils.isNotEmpty(list) ? list.get(1).doubleValue() : null);
vo.setY(CollectionUtils.isNotEmpty(list) ? list.get(2).doubleValue(): null);
List<Double> list = track == null ? Lists.newArrayList() : (List<Double>) track;
vo.setX(CollectionUtils.isNotEmpty(list) ? list.get(1) : null);
vo.setY(CollectionUtils.isNotEmpty(list) ? list.get(2) : null);
int personState = properties.getInteger("personState");
vo.setPersonState(personState);
int person = properties.getIntValue("person");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment