| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mes.largenscreen.entity.DailyProductionVO; |
| | | import com.mes.largenscreen.entity.RunTime; |
| | | import com.mes.opctask.entity.EdgStorageDeviceTaskHistory; |
| | | import com.mes.opctask.entity.request.TaskHistoryRequest; |
| | | import com.mes.opctask.service.EdgStorageDeviceTaskHistoryService; |
| | |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | return Result.success(edgStorageDeviceTaskHistoryService.queryEdgStorageDeviceTaskHistory(request)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询本条线历史指定日期的日生产数据", notes = "查询本条线历史指定日期的日生产数据") |
| | | @PostMapping("/queryEdgDailyProduction") |
| | | public Result<DailyProductionVO> queryEdgDailyProduction(@RequestBody TaskHistoryRequest request) { |
| | | return Result.success(edgStorageDeviceTaskHistoryService.queryEdgDailyProduction(request)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询生产线运行情况", notes = "查询生产线运行情况") |
| | | @GetMapping("/queryRunTimes") |
| | | public Result<List<RunTime>> queryRunTimes(String days) { |
| | | return Result.success(edgStorageDeviceTaskHistoryService.queryRunTimes(days)); |
| | | } |
| | | |
| | | } |
| | | |