手表数据返回处理
This commit is contained in:
+5
-5
@@ -952,7 +952,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
||||
WatchStatUserInfoDaySleep data = watchStatUserInfoDaySleepMapper.selectOne(queryWrapper);
|
||||
|
||||
if (data == null) {
|
||||
return null;
|
||||
return new UserStat();
|
||||
}
|
||||
|
||||
UserStat stat = new UserStat();
|
||||
@@ -974,7 +974,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
||||
// 最新数据
|
||||
UserStat userStat = userWatchDataLatest(userId, type, scale);
|
||||
if (userStat == null) {
|
||||
return null;
|
||||
return new UserStat();
|
||||
}
|
||||
LambdaQueryWrapper<WatchStatUserInfoDayTemp> queryWrapper = getQueryWrapper(userId, date);
|
||||
WatchStatUserInfoDayTemp data = watchStatUserInfoDayTempMapper.selectOne(queryWrapper);
|
||||
@@ -992,7 +992,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
||||
// 最新数据
|
||||
UserStat userStat = userWatchDataLatest(userId, type, scale);
|
||||
if (userStat == null) {
|
||||
return null;
|
||||
return new UserStat();
|
||||
}
|
||||
LambdaQueryWrapper<WatchStatUserInfoDayStress> queryWrapper = getQueryWrapper(userId, date);
|
||||
WatchStatUserInfoDayStress data = watchStatUserInfoDayStressMapper.selectOne(queryWrapper);
|
||||
@@ -1010,7 +1010,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
||||
// 最新数据
|
||||
UserStat userStat = userWatchDataLatest(userId, type, scale);
|
||||
if (userStat == null) {
|
||||
return null;
|
||||
return new UserStat();
|
||||
}
|
||||
LambdaQueryWrapper<WatchStatUserInfoDaySpo2> queryWrapper = getQueryWrapper(userId, date);
|
||||
WatchStatUserInfoDaySpo2 data = watchStatUserInfoDaySpo2Mapper.selectOne(queryWrapper);
|
||||
@@ -1028,7 +1028,7 @@ public class WatchDataApiServiceImpl implements WatchDataApiService {
|
||||
// 最新数据
|
||||
UserStat userStat = userWatchDataLatest(userId, type, scale);
|
||||
if (userStat == null) {
|
||||
return null;
|
||||
return new UserStat();
|
||||
}
|
||||
LambdaQueryWrapper<WatchStatUserInfoDayHeartRate> queryWrapper = getQueryWrapper(userId, date);
|
||||
WatchStatUserInfoDayHeartRate data = watchStatUserInfoDayHeartRateMapper.selectOne(queryWrapper);
|
||||
|
||||
Reference in New Issue
Block a user