| | |
| | | import org.springframework.beans.factory.annotation.Value; |
| | | import org.springframework.stereotype.Service; |
| | | import org.springframework.transaction.annotation.Transactional; |
| | | import sun.security.smartcardio.SunPCSC; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | |
| | | Integer staOther = getStaOther(staNoEnd); |
| | | BasDevp basDevp = basDevpService.selectById(staNo); |
| | | if (Cools.isEmpty(basDevp) || basDevp.getWrkNo()==0 |
| | | || !basDevp.getAutoing().equals("Y") || !basDevp.getLoading().equals("Y") || !basDevp.getInEnable().equals("Y")){ |
| | | || !basDevp.getAutoing().equals("Y") || !basDevp.getLoading().equals("Y") || !basDevp.getLoadingSuper().equals("Y") || !basDevp.getInEnable().equals("Y")){ |
| | | return FAIL; |
| | | } |
| | | BasDevp basDevp131 = basDevpService.selectById(131); |
| | |
| | | return FAIL; |
| | | } |
| | | |
| | | if (basDevpEnd.getLoading().equals("Y") && basDevpEnd.getEmptyMk().equals("Y")){ |
| | | if (basDevpEnd.getLoading().equals("Y") && basDevpEnd.getLoadingSuper().equals("Y") && basDevpEnd.getEmptyMk().equals("Y")){ |
| | | //生成机械臂任务 |
| | | TrussCombParam trussCombParam = new TrussCombParam(wrkDetl,staNoEnd); |
| | | try{ |
| | |
| | | log.error("桁架上位软件退库失败"+e); |
| | | return FAIL; |
| | | } |
| | | }else if (!basDevpEnd.getLoading().equals("Y") ){ |
| | | }else if (!basDevpEnd.getLoading().equals("Y") && !basDevpEnd.getLoadingSuper().equals("Y")){ |
| | | Thread.sleep(1000); |
| | | basDevpEnd = basDevpService.selectById(staNoEnd); |
| | | if (Cools.isEmpty(basDevpEnd) || !basDevpEnd.getAutoing().equals("Y") || basDevpEnd.getReportSign()!=0 || !basDevpEnd.getLoading().equals("Y") ){ |
| | | if (Cools.isEmpty(basDevpEnd) || !basDevpEnd.getAutoing().equals("Y") || basDevpEnd.getReportSign()!=0 || basDevpEnd.getLoading().equals("Y") || basDevpEnd.getLoadingSuper().equals("Y")){ |
| | | return FAIL; |
| | | } |
| | | WrkMastSta wrkMastSta = wrkMastStaService.selectOne(new EntityWrapper<WrkMastSta>().eq("wrk_no",staNoEnd + 19999L)); |