大屏对外接口

This commit is contained in:
liuhanqing
2025-06-12 08:58:54 +08:00
parent 51eeb3ee28
commit cbc4889fdb
5 changed files with 69 additions and 10 deletions

View File

@@ -22,7 +22,7 @@ import java.util.stream.Collectors;
@RestController
@RequestMapping("/api")
public class JobStatisticsController {
@Autowired
private IJobStatisticsService jobStatisticsService;
@Autowired
@@ -59,4 +59,10 @@ public class JobStatisticsController {
return AjaxResult.success(result);
}
}
@GetMapping("/device/info")
public AjaxResult getDeviceInfo() {
// 获取设备信息
return jobStatisticsService.getDeviceInfo();
}
}

View File

@@ -0,0 +1,32 @@
package com.ruoyi.api.controller;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.job.mydojob.domain.MydoJob;
import com.ruoyi.job.mydojob.service.IMydoJobService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.List;
/**
* 作业统计 Controller
*/
@RestController
@RequestMapping("/api2wcs")
public class ToWcsApiController {
@Autowired
private IMydoJobService mydoJobService;
/**
* 获取任务
*/
@GetMapping("/getJob")
public AjaxResult getJob(MydoJob mydoJob)
{
return AjaxResult.success(mydoJobService.selectMydoJobList(mydoJob));
}
}