| | |
| | | @Autowired |
| | | private BasConveyorService basConveyorService; |
| | | @Autowired |
| | | private BasConveyorStaService basConveyorStaService; |
| | | @Autowired |
| | | private BasLedService basLedService; |
| | | |
| | | /** |
| | |
| | | } |
| | | |
| | | for (Task task : tasks) { |
| | | DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Conveyor, 1); |
| | | BasConveyorSta originStaObj = basConveyorStaService.selectBySiteNo(task.getOriginSite());//获取源站 |
| | | if (originStaObj == null) { |
| | | continue; |
| | | } |
| | | |
| | | DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Conveyor, originStaObj.getConveyorId().intValue()); |
| | | StaProtocol staProtocol = devpThread.getStation().get(Integer.parseInt(task.getOriginSite()));//源站 |
| | | StaProtocol staProtocol1 = devpThread.getStation().get(Integer.parseInt(task.getDestSite()));//目标站 |
| | | if (staProtocol == null || staProtocol1 == null) { |
| | |
| | | staProtocol1 = staProtocol1.clone(); |
| | | } |
| | | |
| | | // // 查询站点详细信息 |
| | | // BasDevp staDetl = basDevpService.selectById(outSta.getStaNo()); |
| | | // if (staDetl == null) { |
| | | // log.error("出库 ===>> 站点在数据库不存在, 站点编号={}", outSta.getStaNo()); |
| | | // continue; |
| | | // } |
| | | // 判断堆垛机出库站状态 |
| | | if (staProtocol.isAutoing() && !staProtocol.isLoading() && staProtocol.getWorkNo() == 0 && staProtocol.isOutEnable()) { |
| | | |
| | | if (!(staProtocol1.isAutoing() && !staProtocol1.isLoading() && staProtocol1.getWorkNo() == 0 && staProtocol1.isOutEnable())) { |
| | | continue; |
| | | } |