add:rgv任务

This commit is contained in:
zhangzq
2025-04-10 19:54:09 +08:00
parent 99ed91b01c
commit 1a5d0110d1
2 changed files with 28 additions and 1 deletions

View File

@@ -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());
}
}
}

View File

@@ -6,7 +6,7 @@ spring:
freemarker:
check-template-location: false
profiles:
active: prod
active: dev
jackson:
time-zone: GMT+8
data: