diff --git a/health-watch/health-watch-biz/src/main/java/com/renkang/watch/service/impl/WatchDeviceServiceImpl.java b/health-watch/health-watch-biz/src/main/java/com/renkang/watch/service/impl/WatchDeviceServiceImpl.java index 8620930..62a46fe 100644 --- a/health-watch/health-watch-biz/src/main/java/com/renkang/watch/service/impl/WatchDeviceServiceImpl.java +++ b/health-watch/health-watch-biz/src/main/java/com/renkang/watch/service/impl/WatchDeviceServiceImpl.java @@ -151,7 +151,6 @@ public class WatchDeviceServiceImpl extends ServiceImpl deviceByUserIdList = getDeviceByUserId(dto.getBindUserId()); @@ -322,9 +331,8 @@ public class WatchDeviceServiceImpl extends ServiceImpl resultPage = new Page<>(); @@ -1698,7 +1706,7 @@ public class WatchDeviceServiceImpl extends ServiceImpl workoutList = workoutUserMap.get(userId); - if (CollUtil.isNotEmpty(workoutList)){ + if (CollUtil.isNotEmpty(workoutList)) { // 获取该用户当日消耗数据 WatchStatUserInfoDayWorkout dayWorkout = workoutList.stream().filter(item -> item.getDataDate().equals(cn.hutool.core.date.DateUtil.parse(date, "yyyy-MM-dd"))).findFirst().orElse(null); if (dayWorkout != null) { @@ -2229,7 +2237,7 @@ public class WatchDeviceServiceImpl extends ServiceImpl watchDeviceList = watchDeviceMapper.selectList(new LambdaQueryWrapper() - .in(WatchDevice::getBindUserId, cloudResultData.stream().map(FamilyMembersVO::getFamilyMembersId).collect(Collectors.toList()))); + .in(WatchDevice::getBindUserId, cloudResultData.stream().map(FamilyMembersVO::getFamilyMembersId).collect(Collectors.toList()))); if (CollUtil.isEmpty(watchDeviceList)) { return new ArrayList<>(); } @@ -2251,20 +2259,20 @@ public class WatchDeviceServiceImpl extends ServiceImpl() - .eq(WatchDevice::getBindUserId, userId),false); + .eq(WatchDevice::getBindUserId, userId), false); if (ObjUtil.isEmpty(watchDevice)) { return healthFamilyVO; } @@ -2288,7 +2296,7 @@ public class WatchDeviceServiceImpl extends ServiceImpl exerciseType = watchExerciseType.stream().collect(Collectors.toMap(DictModel::getValue, Function.identity())); for (HealthFamilyVO familyVO : list) { DictModel dictModel = exerciseType.get(familyVO.getWorkoutType()); - if (ObjUtil.isNotEmpty(dictModel)){ + if (ObjUtil.isNotEmpty(dictModel)) { familyVO.setDurationName(dictModel.getText()); } } @@ -2301,11 +2309,11 @@ public class WatchDeviceServiceImpl extends ServiceImpl wrapper = new LambdaUpdateWrapper<>(); wrapper.eq(WatchKeyUser::getUserId, userId); - wrapper.eq(ObjUtil.isNotEmpty(errorType),WatchKeyUser::getErrorType, errorType); - wrapper.set(WatchKeyUser::getDelFlag,1); + wrapper.eq(ObjUtil.isNotEmpty(errorType), WatchKeyUser::getErrorType, errorType); + wrapper.set(WatchKeyUser::getDelFlag, 1); keyUserMapper.update(wrapper); }