| | |
| | | |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.mes.job.PlcLoadGlassTask; |
| | | import com.mes.loadglassdevicetaskhistory.entity.request.LoadGlassRequest; |
| | | import com.mes.opctask.entity.LoadGlassDeviceTaskHistory; |
| | | import com.mes.opctask.entity.request.LoadGlassDeviceTaskHistoryRequest; |
| | | import com.mes.opctask.service.LoadGlassDeviceTaskHistoryService; |
| | | import com.mes.pp.service.OptimizeProjectService; |
| | | import com.mes.uppattenusage.entity.UpPattenUsage; |
| | | import com.mes.utils.Result; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.*; |
| | | 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 java.util.List; |
| | | import javax.annotation.Resource; |
| | | |
| | | /** |
| | | * <p> |
| | | * 前端控制器 |
| | | * 前端控制器 |
| | | * </p> |
| | | * |
| | | * @author wf |
| | |
| | | @RequestMapping("/loadglassdevicetaskhistory") |
| | | public class LoadGlassDeviceTaskHistoryController { |
| | | |
| | | @Resource |
| | | PlcLoadGlassTask plcLoadGlassTask; |
| | | @Autowired |
| | | private LoadGlassDeviceTaskHistoryService loadGlassDeviceTaskHistoryService; |
| | | |
| | |
| | | return Result.build(200, "查询成功", loadGlassDeviceTaskHistoryService.queryLoadGlassHistoryTask(request)); |
| | | } |
| | | |
| | | @ApiOperation("查询线路所有数据") |
| | | @PostMapping("/queryAllMessage") //查询现在上片机的玻璃信息 |
| | | public Result<String> queryAllMessage(@RequestBody @Validated LoadGlassRequest request) { |
| | | return Result.build(200, "查询成功", plcLoadGlassTask.loadGlassChild(request.getRedisRequest(), request.getStationCell(), |
| | | request.getTableName(), request.getWebSocketName())); |
| | | } |
| | | |
| | | } |
| | | |