BUGFIX:邮件;
This commit is contained in:
@@ -32,10 +32,10 @@ public class MyTaskScheduler {
|
||||
@Resource
|
||||
private TrialOrderMapper trialOrderMapper;
|
||||
|
||||
@PostConstruct
|
||||
public void executeWeeklyHeavyStockReport() {
|
||||
sendTrialOrderExcelToManagements();
|
||||
}
|
||||
// @PostConstruct
|
||||
// public void executeWeeklyHeavyStockReport() {
|
||||
// sendTrialOrderExcelToManagements();
|
||||
// }
|
||||
|
||||
// 定时任务,每十五天执行一次
|
||||
// @Scheduled(cron = "0 0 0 ? * MON")
|
||||
|
||||
@@ -133,6 +133,7 @@ public class SendEmailUtil {
|
||||
private final static Long APPROVAL_TEMPLATE_ID = 117215L;
|
||||
private final static Long NOTIFICATION_TEMPLATE_ID = 117216L;
|
||||
private final static Long NOTIFICATION_CHINESE_TEMPLATE_ID = 122229L;
|
||||
private final static Long TRIAL_ORDER_LIST_ID = 122273L;
|
||||
public static void sendCustomEmail(String receiverAddress, String senderAddress, TrialOrder trialOrder, int emailType, String country) {
|
||||
try {
|
||||
// 实例化一个认证对象
|
||||
@@ -208,7 +209,7 @@ public class SendEmailUtil {
|
||||
String subject = "";
|
||||
Template template = new Template();
|
||||
subject = "昨日试用订单数据";
|
||||
template.setTemplateID(YOUR_TRIAL_TEMPLATE_ID);
|
||||
template.setTemplateID(TRIAL_ORDER_LIST_ID);
|
||||
|
||||
req.setSubject(subject);
|
||||
req.setTemplate(template);
|
||||
|
||||
Reference in New Issue
Block a user