add:rgv任务
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package org.nl.b_lms.sch.tasks.auto;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.nl.b_lms.sch.tasks.TwoOutHeapTask;
|
||||
import org.nl.b_lms.sch.tasks.first_floor_area.auto.Prun;
|
||||
import org.nl.common.utils.RedissonUtils;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
@Slf4j
|
||||
@Component
|
||||
public class AutoRgvSendTask extends Prun {
|
||||
|
||||
@Autowired
|
||||
private TwoOutHeapTask twoOutHeapTask;
|
||||
@Override
|
||||
public void run() {
|
||||
try {
|
||||
RedissonUtils.lock(c -> {
|
||||
log.info("start_sendTaskAcs task......");
|
||||
twoOutHeapTask.sendTaskAcs(null,true);
|
||||
},"resendrgv", 30, this);
|
||||
}catch (Exception ex){
|
||||
log.error(ex.getMessage());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,7 +6,7 @@ spring:
|
||||
freemarker:
|
||||
check-template-location: false
|
||||
profiles:
|
||||
active: prod
|
||||
active: dev
|
||||
jackson:
|
||||
time-zone: GMT+8
|
||||
data:
|
||||
|
||||
Reference in New Issue
Block a user