| | |
| | | //NG转OK需要还原源库位和目标库位状态,OK转NG 删除任务档 |
| | | WrkMast wrkMast=wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("source_loc_no",locMast.getLocNo())); |
| | | if(!Cools.isEmpty(wrkMast)){ |
| | | if(wrkMast.getWrkSts()==11){ |
| | | if(wrkMast.getIoType()==11){ |
| | | LocMast locMast1=locMastService.selectOne(new EntityWrapper<LocMast>().eq("loc_no",wrkMast.getLocNo())); |
| | | locMast1.setLocSts("O"); |
| | |
| | | }else{ |
| | | fig=true; |
| | | } |
| | | } |
| | | }} |
| | | }else if(devpThread.startSignal[i][0]==3){ |
| | | locMast.setPackStatus(7); |
| | | testMast.setModiTime(new Date()); |
| | |
| | | TestMast testMast=testMastService.selectOne(new EntityWrapper<TestMast>() |
| | | .eq("loc_no",locMast.getLocNo()) |
| | | .eq("user_id",locMast.getBarcode())); |
| | | if(locMast.getLocSts().equals("O")&&devpThread.startSignal[i][0]!=8){ |
| | | if((locMast.getLocSts().equals("O")||locMast.getLocSts().equals("S"))&&devpThread.startSignal[i][0]!=8){ |
| | | Thread.sleep(1000); |
| | | MessageQueue.offer(SlaveType.Devp, 1, new Task(6,locMast.getChannel()-1)); |
| | | } |