|
|
@@ -187,15 +187,15 @@ public class Timer {
|
|
|
}
|
|
|
List<User> users = dMSService.query(authService.getTokenOfServiceAccount(),DMSQuery.USER_BIND_ENTERPRISE,User.class,actuallyTime.toLocalDate());
|
|
|
Map<String, List<User>> userMap = users.stream().filter(u->u.getCGlGs()!=null).collect(Collectors.groupingBy(User::getCGlGs));
|
|
|
-
|
|
|
- enterpriseHealthComputer.getResults().stream().filter(EnterpriseHealth::isPositive).forEach(e->{
|
|
|
- String enterpriseCode = e.getCEnterpriseCode();
|
|
|
- List<User> userList = userMap.get(enterpriseCode);
|
|
|
- if (userList!=null) {
|
|
|
- for (User user : userList) {
|
|
|
- messageService.sendMessageByEnterpriseHealth(e,actuallyTime,user);
|
|
|
- }
|
|
|
- }
|
|
|
- });
|
|
|
+//暂时关闭
|
|
|
+// enterpriseHealthComputer.getResults().stream().filter(EnterpriseHealth::isPositive).forEach(e->{
|
|
|
+// String enterpriseCode = e.getCEnterpriseCode();
|
|
|
+// List<User> userList = userMap.get(enterpriseCode);
|
|
|
+// if (userList!=null) {
|
|
|
+// for (User user : userList) {
|
|
|
+// messageService.sendMessageByEnterpriseHealth(e,actuallyTime,user);
|
|
|
+// }
|
|
|
+// }
|
|
|
+// });
|
|
|
}
|
|
|
}
|