| | |
| | | |
| | | @Value("${wms.url}") |
| | | private String wmsUrl; |
| | | @Value("${inventory.number}") |
| | | private Integer inventoryNumber; |
| | | |
| | | public Integer wrkNo = 10000; |
| | | |
| | |
| | | for (WrkMast wrkMast : wrkMasts) { |
| | | if (wrkMast == null) { |
| | | continue; |
| | | } |
| | | if (wrkMast.getIoType() == 107){ |
| | | int count = wrkMastService.selectCount(new EntityWrapper<WrkMast>().eq("io_type", wrkMast.getIoType()).eq("wrk_sts", 14)); |
| | | if (count >= inventoryNumber) { |
| | | continue; |
| | | } |
| | | } |
| | | // 工作档状态判断 |
| | | if (wrkMast.getIoType() < 100 || wrkMast.getSourceStaNo() == null) { |
| | |
| | | public synchronized void autoEmptyOut() { |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | List<Integer> list = new ArrayList<>(); |
| | | list.add(101);list.add(112); |
| | | list.add(1108);list.add(112); |
| | | Map<Integer,Integer> map = new HashMap<>(); |
| | | map.put(101,102);map.put(112,111); |
| | | for (Integer site:list){ |
| | |
| | | public synchronized void autoEmptyIn() { |
| | | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 1); |
| | | List<Integer> list = new ArrayList<>(); |
| | | list.add(153);list.add(157); |
| | | list.add(1038); |
| | | for (Integer site:list){ |
| | | StaProtocol staProtocol = devpThread.getStation().get(site); |
| | | if (staProtocol == null) { |
| | |
| | | } |
| | | } |
| | | |
| | | // /** |
| | | // * 自动生成RGV接驳任务 |
| | | // */ |
| | | // public synchronized void rgvCreateWrkMastSta(){ |
| | | // try{ |
| | | // |
| | | // } |
| | | // } |
| | | |
| | | |
| | | /** |
| | | * 完成小车任务 |