|
|
@@ -414,6 +414,7 @@ public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
|
@Override
|
|
|
public void sendmailUnionUser() {
|
|
|
List<UserVO> userList = userMapper.sendmailUnionUser();
|
|
|
+ if(userList.size()>0){
|
|
|
// 1. 创建参数配置, 用于连接邮件服务器的参数配置
|
|
|
Properties props = new Properties(); // 参数配置
|
|
|
props.setProperty("mail.transport.protocol", "smtp"); // 使用的协议(JavaMail规范要求)
|
|
|
@@ -455,6 +456,7 @@ public class SysUserOrderAuthorServiceImpl implements ISysUserOrderAuthorService
|
|
|
e.printStackTrace();
|
|
|
}
|
|
|
}
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|