大屏,查询设备信息
This commit is contained in:
@@ -61,7 +61,7 @@ public class JobStatisticsController {
|
||||
}
|
||||
|
||||
@GetMapping("/device/info")
|
||||
public AjaxResult getDeviceInfo() {
|
||||
public Object getDeviceInfo() {
|
||||
// 获取设备信息
|
||||
return jobStatisticsService.getDeviceInfo();
|
||||
}
|
||||
|
||||
@@ -18,5 +18,5 @@ public interface IJobStatisticsService {
|
||||
*/
|
||||
public Map<String, Object> getDailyStatistics();
|
||||
|
||||
AjaxResult getDeviceInfo();
|
||||
Object getDeviceInfo();
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user