Commit 8b954eba by fz

1.保存注册信息,如果蓝牙地址有则更新,没有新增

1 parent b6cc8562
......@@ -300,6 +300,8 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
return R.ok().data(responseList);
}
smartKeyBlueSenseList.stream().forEach(s->log.info("getAllKeyByUser1====="+s.getMobileBlueMac()));
//转化为sn,蓝牙感应数据
Map<String, SmartKeyBlueSense> blueSenseListMap = new HashMap<>();
smartKeyBlueSenseList.stream().forEach(blueSense -> {
......@@ -327,7 +329,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
blueSenseListMap.put(sn, data);
});
blueSenseListMap.entrySet().stream().forEach(s->log.info("getAllKeyByUser2=====key:"+s.getKey()+"===mac:"+s.getValue().getMobileBlueMac()));
//将蓝牙感应数据添加
responseList.stream().forEach(response->{
......@@ -338,6 +340,7 @@ public class AiLockingKeyServiceImpl implements AiLockingKeyService {
response.setAutoSenseStatus(blueSense.getAutoSenseStatus());
}
});
smartKeyBlueSenseList.stream().forEach(s->log.info("getAllKeyByUser3====="+s.getMobileBlueMac()));
return R.ok().data(responseList);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!