|
|
@ -17,6 +17,7 @@ import org.dromara.system.service.ISysUserService; |
|
|
|
import org.springframework.scheduling.annotation.Async; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Set; |
|
|
@ -56,6 +57,7 @@ public class RemoteSubmailConfigServiceImpl implements RemoteSubmailConfigServic |
|
|
|
public void remoteSend(String code, List<Map<String, Object>> alertList) { |
|
|
|
if(!alertList.isEmpty()){ |
|
|
|
for (Map<String, Object> map : alertList) { |
|
|
|
map.put("createTime",new Date()); |
|
|
|
Long deptId = Convert.toLong(map.get("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()); |
|
|
|