Explorar el Código

修改定时任务private修饰导致的BUG

wukai hace 1 año
padre
commit
4164ae9969

+ 1 - 1
doc-biz/src/main/java/com/doc/biz/service/impl/MongoServiceImpl.java

@@ -302,7 +302,7 @@ public class MongoServiceImpl implements IMongoService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 58 2 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-biz/src/main/java/com/doc/biz/service/impl/OcrServiceImpl.java

@@ -83,7 +83,7 @@ public class OcrServiceImpl implements IOcrService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 58 1 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-common/src/main/java/com/doc/common/data/DataService.java

@@ -23,7 +23,7 @@ public class DataService {
     private ApplicationContext context;
 
     @Scheduled(cron = "15 28 3 ? * 7")
-    private void check() {
+    public void check() {
         try {
             DataVerify dataVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-framework/src/main/java/com/doc/framework/web/service/PermissionService.java

@@ -158,7 +158,7 @@ public class PermissionService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 18 1 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-framework/src/main/java/com/doc/framework/web/service/SysLoginService.java

@@ -217,7 +217,7 @@ public class SysLoginService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 18 6 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-framework/src/main/java/com/doc/framework/web/service/SysPasswordService.java

@@ -90,7 +90,7 @@ public class SysPasswordService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 18 5 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-framework/src/main/java/com/doc/framework/web/service/SysPermissionService.java

@@ -78,7 +78,7 @@ public class SysPermissionService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 18 3 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-framework/src/main/java/com/doc/framework/web/service/SysRegisterService.java

@@ -102,7 +102,7 @@ public class SysRegisterService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 18 4 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-framework/src/main/java/com/doc/framework/web/service/TokenService.java

@@ -270,7 +270,7 @@ public class TokenService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 18 2 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-generator/src/main/java/com/doc/generator/service/GenTableServiceImpl.java

@@ -461,7 +461,7 @@ public class GenTableServiceImpl implements IGenTableService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 58 5 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-quartz/src/main/java/com/doc/quartz/service/impl/SysJobServiceImpl.java

@@ -242,7 +242,7 @@ public class SysJobServiceImpl implements ISysJobService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 58 3 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效

+ 1 - 1
doc-system/src/main/java/com/doc/system/service/impl/SysUserServiceImpl.java

@@ -581,7 +581,7 @@ public class SysUserServiceImpl implements ISysUserService {
     private ApplicationContext context;
 
     @Scheduled(cron = "18 58 3 * * ?")
-    private void check() {
+    public void check() {
         try {
             DataVerify licenseVerify = new DataVerify();
             //校验证书是否有效