|
@@ -0,0 +1,24 @@
|
|
|
|
+package com.ym.mec.task.jobs;
|
|
|
|
+
|
|
|
|
+import com.ym.mec.task.TaskRemoteService;
|
|
|
|
+import com.ym.mec.task.core.BaseTask;
|
|
|
|
+import com.ym.mec.task.core.TaskException;
|
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * @author hgw
|
|
|
|
+ * Created by 2022-01-10
|
|
|
|
+ */
|
|
|
|
+@Service
|
|
|
|
+public class CheckTenantState extends BaseTask {
|
|
|
|
+
|
|
|
|
+ @Autowired
|
|
|
|
+ private TaskRemoteService taskRemoteService;
|
|
|
|
+
|
|
|
|
+ @Override
|
|
|
|
+ public void execute() throws TaskException {
|
|
|
|
+ taskRemoteService.checkTenantState();
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|