james 10 tháng trước cách đây
mục cha
commit
a01213005e

+ 2 - 2
base-modules/service-job/src/main/java/com/ruoyi/job/task/RyTask.java

@@ -15,7 +15,7 @@ import com.usky.common.core.utils.StringUtils;
 public class RyTask
 {
     @Autowired
-    private RemoteFireService remoteFireService = SpringUtils.getBean(RemoteFireService.class);
+    private RemoteFireService remoteFireService;
 
     public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
     {
@@ -33,7 +33,7 @@ public class RyTask
     }
 
     public void addPatrolInspectionAbnormalData(){
-        this.remoteFireService.addPatrolInspectionAbnormalData();
+        remoteFireService.addPatrolInspectionAbnormalData();
         System.out.println("addPatrolInspectionAbnormalData");
     }
 }