| | |
| | | } else if (storageTask.getGlassId() == B02glassid&&DeviceList.get(3)==0) { |
| | | ClearGlassId("DB101.10.3"); |
| | | outSliceServive.StopTask(storageTask.getGlassId(), types); |
| | | }\ |
| | | } |
| | | } |
| | | // 发送终止进片任务信号 |
| | | } else {// 终止出片任务 |
| | | List<StorageTask> cageLists = homeMapper.SelectTaskByState(types); |
| | | List<StorageTask> cageList2 = homeMapper.SelectTaskByState(2); |
| | | if (cageList2!=null) { |
| | | if (cageList2.size()>0) { |
| | | cageLists.add(cageList2.get(0)); |
| | | } |
| | | for (StorageTask cageList : cageLists) { |
| | | if (cageList.getTaskType().equals("1")) { |
| | | if(cageList.getGlassId() ==A02glassid1&&DeviceList.get(5)==0){ |
| | | |
| | | System.out.println(DeviceList.get(5)); |
| | | if(cageList.getGlassId().equals(A02glassid1)&&DeviceList.get(5)==0){ |
| | | outSliceServive.StopTask(cageList.getGlassId(), types); |
| | | ClearGlassId("DB101.10.1"); |
| | | } |
| | | else if(cageList.getGlassId() ==B01glassid&&DeviceList.get(2)==0){ |
| | | if(cageList.getGlassId().equals(B01glassid)&&DeviceList.get(2)==0){ |
| | | outSliceServive.StopTask(cageList.getGlassId(), types); |
| | | ClearGlassId("DB101.10.2"); |
| | | } |
| | | else if(cageList.getGlassId() ==B02glassid&&DeviceList.get(3)==0){ |
| | | if(cageList.getGlassId().equals(B02glassid)&&DeviceList.get(3)==0){ |
| | | outSliceServive.StopTask(cageList.getGlassId(), types); |
| | | ClearGlassId("DB101.10.3"); |
| | | } |
| | | }else if (cageList.getTaskType().equals("2")) { |
| | | if(cageList.getGlassId() ==A02glassid1&&DeviceList.get(5)==0){ |
| | | if(cageList.getGlassId().equals(A02glassid1)&&DeviceList.get(5)==0){ |
| | | outSliceServive.StopTask(cageList.getGlassId(), 2); |
| | | ClearGlassId("DB101.10.1"); |
| | | } |
| | | else if(cageList.getGlassId() ==B01glassid&&DeviceList.get(2)==0){ |
| | | if(cageList.getGlassId().equals(B01glassid)&&DeviceList.get(2)==0){ |
| | | outSliceServive.StopTask(cageList.getGlassId(), 2); |
| | | ClearGlassId("DB101.10.2"); |
| | | } |
| | | else if(cageList.getGlassId() ==B02glassid&&DeviceList.get(3)==0){ |
| | | if(cageList.getGlassId().equals(B02glassid)&&DeviceList.get(3)==0){ |
| | | outSliceServive.StopTask(cageList.getGlassId(), 2); |
| | | ClearGlassId("DB101.10.3"); |
| | | } |