package com.mes.opctask.controller;
|
|
|
import com.mes.opctask.entity.EdgStorageDeviceTaskHistory;
|
import com.mes.opctask.entity.request.TaskHistoryRequest;
|
import com.mes.opctask.service.EdgStorageDeviceTaskHistoryService;
|
import com.mes.utils.Result;
|
import io.swagger.annotations.Api;
|
import io.swagger.annotations.ApiOperation;
|
import org.springframework.web.bind.annotation.GetMapping;
|
import org.springframework.web.bind.annotation.RequestMapping;
|
import org.springframework.web.bind.annotation.RestController;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* (EdgStorageDeviceTaskHistory)表控制层
|
*
|
* @author makejava
|
* @since 2024-10-27 21:04:29
|
*/
|
@Api(tags = "卧理历史任务")
|
@RestController
|
@RequestMapping("edgStorageDeviceTaskHistory")
|
public class EdgStorageDeviceTaskHistoryController {
|
/**
|
* 服务对象
|
*/
|
@Resource
|
private EdgStorageDeviceTaskHistoryService edgStorageDeviceTaskHistoryService;
|
|
@ApiOperation(value = "查询本条线执行过的历史任务数据", notes = "查询本条线执行过的历史任务数据")
|
@GetMapping
|
public Result<List<EdgStorageDeviceTaskHistory>> queryEdgStorageDeviceTaskHistory(TaskHistoryRequest request) {
|
return Result.success(edgStorageDeviceTaskHistoryService.queryEdgStorageDeviceTaskHistory(request));
|
}
|
|
}
|