大屏对外接口
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user