添加查询标签数据源value接口

This commit is contained in:
yangsb
2024-04-03 16:15:21 +08:00
parent e08dc9324c
commit b0dfc889ff
15 changed files with 123 additions and 9 deletions
@@ -4,6 +4,7 @@ import com.cf.imes.framework.organ.core.aop.OrganIgnore;
import com.cf.imes.module.infra.service.logger.ApiAccessLogService;
/*import com.xxl.job.core.handler.annotation.XxlJob;*/
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@@ -30,11 +31,12 @@ public class AccessLogCleanJob {
*/
private static final Integer DELETE_LIMIT = 100;
/* @XxlJob("accessLogCleanJob")
/* @XxlJob("accessLogCleanJob")*/
@OrganIgnore
/* @Scheduled(cron = "0 0 * * * ?")*/
public void execute() {
Integer count = apiAccessLogService.cleanAccessLog(JOB_CLEAN_RETAIN_DAY, DELETE_LIMIT);
log.info("[execute][定时执行清理访问日志数量 ({}) 个]", count);
}*/
}
}
@@ -4,6 +4,7 @@ import com.cf.imes.framework.organ.core.aop.OrganIgnore;
import com.cf.imes.module.infra.service.logger.ApiErrorLogService;
/*import com.xxl.job.core.handler.annotation.XxlJob;*/
import lombok.extern.slf4j.Slf4j;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;
import javax.annotation.Resource;
@@ -30,11 +31,12 @@ public class ErrorLogCleanJob {
*/
private static final Integer DELETE_LIMIT = 100;
/* @XxlJob("errorLogCleanJob")
/*@XxlJob("errorLogCleanJob")*/
@OrganIgnore
/*@Scheduled(cron = "0 0 2 * * ?")*/
public void execute() {
Integer count = apiErrorLogService.cleanErrorLog(JOB_CLEAN_RETAIN_DAY,DELETE_LIMIT);
log.info("[execute][定时执行清理错误日志数量 ({}) 个]", count);
}*/
}
}