zelong.shao

task|定时任务配置调整

......@@ -29,5 +29,9 @@ public interface ParamConfigConstants {
String NOTIFICATION_SENDER_NUMBER = "notification_sender_number";
//通知发件人邮件定时任务处理数量
String NOTIFICATION_SENDER_EMAIL_NUMBER = "notification_sender_email_number";
//邮件发送进口文件时间间隔key
String PUSH_CON_EMAIL_INTERVAL = "push_con_email_interval";
//通知发件人时间间隔
String NOTIFICATION_SENDER_EMAIL_INTERVAL = "notification_sender_email_interval";
}
}
......
package com.fedex.connect.task.job;
import com.fedex.connect.common.dependencies.contants.ParamConfigConstants;
import com.fedex.connect.task.annotation.ProcessingInterval;
import com.fedex.connect.task.service.biz.IDuplicateConsignmentEmailService;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -17,8 +18,8 @@ public class DuplicateConsignmentEmailJob {
@Autowired
private IDuplicateConsignmentEmailService duplicateConsignmentEmailService;
@ProcessingInterval
@Scheduled(cron = "${export.task.allocation.pushConFile}")
@ProcessingInterval(paramCode = ParamConfigConstants.TASK_PARAM_KEYS.NOTIFICATION_SENDER_EMAIL_INTERVAL)
@Scheduled(cron = "${export.task.allocation.sendOb}")
public void pushConsignmentFileTask() {
duplicateConsignmentEmailService.duplicateConsignmentEmail();
}
......
package com.fedex.connect.task.job;
import com.fedex.connect.common.dependencies.contants.ParamConfigConstants;
import com.fedex.connect.task.annotation.ProcessingInterval;
import com.fedex.connect.task.service.biz.IPushConsignmentFileService;
import org.springframework.beans.factory.annotation.Autowired;
......@@ -17,8 +18,8 @@ public class PushConsignmentFileEmailJob {
@Autowired
private IPushConsignmentFileService pushConsignmentFileService;
@ProcessingInterval
@Scheduled(cron = "${export.task.allocation.pushConFile}")
@ProcessingInterval(paramCode = ParamConfigConstants.TASK_PARAM_KEYS.PUSH_CON_EMAIL_INTERVAL)
@Scheduled(cron = "${export.task.allocation.sendOb}")
public void pushConsignmentFileTask() {
pushConsignmentFileService.pushConsignmentFileTask();
}
......