大屏,查询设备信息

This commit is contained in:
猫猫guowen
2025-06-12 15:04:17 +08:00
parent fc38895f99
commit b1368e15d9
4 changed files with 6 additions and 6 deletions

View File

@@ -61,7 +61,7 @@ public class JobStatisticsController {
}
@GetMapping("/device/info")
public AjaxResult getDeviceInfo() {
public Object getDeviceInfo() {
// 获取设备信息
return jobStatisticsService.getDeviceInfo();
}

View File

@@ -18,5 +18,5 @@ public interface IJobStatisticsService {
*/
public Map<String, Object> getDailyStatistics();
AjaxResult getDeviceInfo();
Object getDeviceInfo();
}

View File

@@ -95,10 +95,10 @@ public class JobStatisticsServiceImpl implements IJobStatisticsService {
}
@Override
public AjaxResult getDeviceInfo() {
public Object getDeviceInfo() {
String s = HttpUtil.get(deviceUrl);
return JSONUtil.toBean(s, AjaxResult.class);
//String s = HttpUtil.get(deviceUrl);
return HttpUtil.get(deviceUrl);
}

View File

@@ -131,4 +131,4 @@ xss:
api:
wcs:
device:
url: http://192.168.1.1:8080/api/device
url: http://127.0.0.1:8081/device/api/devicecar/list