修改bug

This commit is contained in:
huangzj
2023-11-09 09:17:49 +08:00
parent 34a3e91fbf
commit 270a71a74a
3 changed files with 10 additions and 3 deletions

View File

@@ -192,6 +192,10 @@ public class CsDeviceUserPOServiceImpl extends ServiceImpl<CsDeviceUserPOMapper,
List<EventDetailVO> event = data.stream().filter(temp -> temp.getType() == 0).collect(Collectors.toList());
List<EventDetailVO> harmonic = data.stream().filter(temp -> temp.getType() == 1).collect(Collectors.toList());
List<EventDetailVO> alarm = data.stream().filter(temp -> temp.getType() == 3).collect(Collectors.toList());
if(Objects.equals(userRole, AppRoleEnum.APP_VIP_USER.getCode())){
alarm = alarm.stream().filter(temp -> Objects.equals("3", temp.getLevel())).collect(Collectors.toList());
}
List<EventDetailVO> run = data.stream().filter(temp -> temp.getType() == 2).collect(Collectors.toList());
if(Objects.equals(userRole,AppRoleEnum.APP_VIP_USER.getCode())||Objects.equals(userRole,AppRoleEnum.TOURIST.getCode())
||Objects.equals(userRole,AppRoleEnum.MARKET_USER.getCode())){