|
@@ -1,5 +1,8 @@
|
|
|
package com.ruoyi.job.task;
|
|
|
|
|
|
+import com.usky.common.core.utils.SpringUtils;
|
|
|
+import com.usky.fire.RemoteFireService;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
import com.usky.common.core.utils.StringUtils;
|
|
|
|
|
@@ -11,6 +14,9 @@ import com.usky.common.core.utils.StringUtils;
|
|
|
@Component("ryTask")
|
|
|
public class RyTask
|
|
|
{
|
|
|
+ @Autowired
|
|
|
+ private RemoteFireService remoteFireService = SpringUtils.getBean(RemoteFireService.class);
|
|
|
+
|
|
|
public void ryMultipleParams(String s, Boolean b, Long l, Double d, Integer i)
|
|
|
{
|
|
|
System.out.println(StringUtils.format("执行多参方法: 字符串类型{},布尔类型{},长整型{},浮点型{},整形{}", s, b, l, d, i));
|
|
@@ -25,4 +31,9 @@ public class RyTask
|
|
|
{
|
|
|
System.out.println("执行无参方法");
|
|
|
}
|
|
|
+
|
|
|
+ public void addPatrolInspectionAbnormalData(){
|
|
|
+ this.remoteFireService.addPatrolInspectionAbnormalData();
|
|
|
+ System.out.println("addPatrolInspectionAbnormalData");
|
|
|
+ }
|
|
|
}
|