| | |
| | | // 根据权限列表,判定是否有模块的通知权限 |
| | | List<String> resourceIds = this.userAuth(username); |
| | | List<Tip> filterNewTips = filterTips(username, lastTimeStamp); |
| | | |
| | | // System.out.println("username = " + username); |
| | | // System.out.println("resourceIds = " + resourceIds); |
| | | // System.out.println("filterNewTips = " + filterNewTips); |
| | | |
| | | if (CollectionUtils.isEmpty(filterNewTips)) { |
| | | return result; |
| | | } |
| | |
| | | CollectionUtils.filter(tipList, new Predicate() {// 过滤查找新生成的通知数据 |
| | | @Override |
| | | public boolean evaluate(Object paramObject) { |
| | | // TODO Auto-generated method stub |
| | | Tip tip = (Tip) paramObject; |
| | | if (TipConstants.MUST_USERNAME_MODEL.containsKey(tip.getModel())) { |
| | | if (StringUtils.isNotEmpty(tip.getTargetUsername()) && username.equals(tip.getTargetUsername())) { |