| | |
| | | * @since 2025-09-15 |
| | | */ |
| | | @RestController |
| | | @Api("消息通知") |
| | | @Api(tags = "消息通知") |
| | | @RequestMapping("/oa-notification") |
| | | public class OaNotificationController { |
| | | @Resource |
| | |
| | | String orDefault = deptMap.getOrDefault(Integer.parseInt(deptId), ""); |
| | | deptName.append(orDefault).append(","); |
| | | } |
| | | notificationDetailVO.setDeptName(deptName.substring(0,deptName.length()-1)); |
| | | if (deptName.length() > 0){ |
| | | notificationDetailVO.setDeptName(deptName.substring(0,deptName.length()-1)); |
| | | }else { |
| | | notificationDetailVO.setDeptName(""); |
| | | } |
| | | List<NotificationDeptUserDetailVO> notificationUserVOS = new ArrayList<>(); |
| | | List<Long> userIds = notifationUsers.stream().map(e -> e.getUserId().longValue()).collect(Collectors.toList()); |
| | | if (!userIds.isEmpty()){ |