|
|
@ -60,7 +60,7 @@ public class RemoteSubmailConfigServiceImpl implements RemoteSubmailConfigServic |
|
|
Long deptId = Convert.toLong(map.get("deptId")); |
|
|
Long deptId = Convert.toLong(map.get("deptId")); |
|
|
List<SysUserVo> sysUserVos = userService.selectUserListByDept(Convert.toLong(deptId)); |
|
|
List<SysUserVo> sysUserVos = userService.selectUserListByDept(Convert.toLong(deptId)); |
|
|
Set<String> phones = sysUserVos.stream().filter(u -> u.getNoticeType() == 1 && StrUtil.isNotEmpty(u.getPhonenumber())).map(SysUserVo::getPhonenumber).collect(Collectors.toSet()); |
|
|
Set<String> phones = sysUserVos.stream().filter(u -> u.getNoticeType() == 1 && StrUtil.isNotEmpty(u.getPhonenumber())).map(SysUserVo::getPhonenumber).collect(Collectors.toSet()); |
|
|
sysSubmailConfigService.sendPhone(code,phones, JSON.toJSONString(map)); |
|
|
sysSubmailConfigService.sendPhone(code,phones, JSON.toJSONString(map),null); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@ -74,7 +74,7 @@ public class RemoteSubmailConfigServiceImpl implements RemoteSubmailConfigServic |
|
|
* @param noticeMap |
|
|
* @param noticeMap |
|
|
*/ |
|
|
*/ |
|
|
@Override |
|
|
@Override |
|
|
public void remoteSendUser(String code, List<Long> userIds, Map<String, Object> noticeMap) { |
|
|
public void remoteSendUser(String code, List<Long> userIds, Map<String, Object> noticeMap,String project) { |
|
|
userIds.forEach(userId -> { |
|
|
userIds.forEach(userId -> { |
|
|
|
|
|
|
|
|
SysUserVo sysUserVo = userService.selectUserById(userId); |
|
|
SysUserVo sysUserVo = userService.selectUserById(userId); |
|
|
@ -83,7 +83,7 @@ public class RemoteSubmailConfigServiceImpl implements RemoteSubmailConfigServic |
|
|
Set<String> phones = new HashSet<>(); |
|
|
Set<String> phones = new HashSet<>(); |
|
|
phones.add(sysUserVo.getPhonenumber()); |
|
|
phones.add(sysUserVo.getPhonenumber()); |
|
|
|
|
|
|
|
|
sysSubmailConfigService.sendPhone(code,phones, JSON.toJSONString(noticeMap)); |
|
|
sysSubmailConfigService.sendPhone(code,phones, JSON.toJSONString(noticeMap),project); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
}); |
|
|
}); |
|
|
|