Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Fedex
/
iClear-Connect-Pre-Clearance
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
zelong.shao
2024-11-20 18:13:38 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
aabe1b24ac4c61febf39730b4d61de64b631c879
aabe1b24
1 parent
48d33d25
task|定时任务配置调整
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
server/common-dependencies/src/main/java/com/fedex/connect/common/dependencies/contants/ParamConfigConstants.java
server/task-schedule/src/main/java/com/fedex/connect/task/job/DuplicateConsignmentEmailJob.java
server/task-schedule/src/main/java/com/fedex/connect/task/job/PushConsignmentFileEmailJob.java
server/common-dependencies/src/main/java/com/fedex/connect/common/dependencies/contants/ParamConfigConstants.java
View file @
aabe1b2
...
...
@@ -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"
;
}
}
...
...
server/task-schedule/src/main/java/com/fedex/connect/task/job/DuplicateConsignmentEmailJob.java
View file @
aabe1b2
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
();
}
...
...
server/task-schedule/src/main/java/com/fedex/connect/task/job/PushConsignmentFileEmailJob.java
View file @
aabe1b2
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
();
}
...
...
Please
register
or
login
to post a comment