| | |
| | | boolean listbool = list.contains((short) 1); |
| | | return listbool; |
| | | } |
| | | //根据玻璃id完成在进行中的任务 |
| | | public void overtask(String glassid){ |
| | | spianMapper.UpdateCageOver(glassid, 0);// 更改笼子表出片状态 |
| | | spianMapper.UpdatetaskOut(glassid); // 完成上一次出片或者进片任务 |
| | | spianMapper.OverOutSlice(glassid, 2);// 完成出片队列任务 |
| | | spianMapper.UpdataGlassCage(glassid,0);// 清除出片格子玻璃信息 |
| | | String barcode=spianMapper.SelectBarcode(glassid);//获取该玻璃的铝框id |
| | | spianMapper.UpdateAddQueue(glassid);//把进片的玻璃更新到出片队列中 |
| | | int barcodeState=spianMapper.SelectOverState(barcode);//获取该铝框的状态 |
| | | if(barcodeState==2){//当该铝框所有的玻璃都是完成状态时删除在出片队列的数据 |
| | | spianMapper.DeleteQueue(barcode); |
| | | } |
| | | } |
| | | } |