| | |
| | | |
| | | 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 io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import javax.annotation.Resource; |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * (EdgStorageDeviceTaskHistory)表控制层 |
| | |
| | | return Result.success(edgStorageDeviceTaskHistoryService.queryEdgDailyProduction(request)); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询生产线运行情况", notes = "查询生产线运行情况") |
| | | @GetMapping("/queryRunTimes") |
| | | public Result<List<RunTime>> queryRunTimes(String days) { |
| | | return Result.success(edgStorageDeviceTaskHistoryService.queryRunTimes(days)); |
| | | } |
| | | |
| | | } |
| | | |