|
@@ -169,8 +169,8 @@ public class MqttMsgService {
|
|
|
for(Map target : targets) {
|
|
|
Integer tid = (Integer) target.get("tid");
|
|
|
Integer cls = (Integer) target.get("cls");
|
|
|
- BigDecimal x = (BigDecimal) target.get("x");
|
|
|
- BigDecimal y = (BigDecimal) target.get("y");
|
|
|
+ BigDecimal x = new BigDecimal(String.valueOf(target.get("x"))) ;
|
|
|
+ BigDecimal y = new BigDecimal(String.valueOf(target.get("y"))) ;
|
|
|
if (cls == 1) { //是人
|
|
|
//先查是否存在
|
|
|
String content = (String)redisUtil.hget(RedisKeyConstant.PEOPLEEVENT_ACTIVE_INFO,careDevice.getDevCode()+ "_" + tid);
|