bug修复
This commit is contained in:
parent
803dca253d
commit
01b830579e
@ -66,6 +66,7 @@ public class SafetyHatWSClient {
|
|||||||
JSONObject joUserInfo = joData.getJSONObject("user_info");
|
JSONObject joUserInfo = joData.getJSONObject("user_info");
|
||||||
if (joUserInfo != null) {
|
if (joUserInfo != null) {
|
||||||
String deviceId = joUserInfo.getString("device_id");
|
String deviceId = joUserInfo.getString("device_id");
|
||||||
|
log.info("SafetyHatWSClient获取实时数据的deviceId:{}", deviceId);
|
||||||
SafetyHatDev dev = SpringContextUtils.getBean(SafetyHatDevMapper.class).selectOne(new LambdaQueryWrapper<SafetyHatDev>()
|
SafetyHatDev dev = SpringContextUtils.getBean(SafetyHatDevMapper.class).selectOne(new LambdaQueryWrapper<SafetyHatDev>()
|
||||||
.eq(SafetyHatDev::getDevSn, deviceId));
|
.eq(SafetyHatDev::getDevSn, deviceId));
|
||||||
if (dev != null) {
|
if (dev != null) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user