| | |
| | | String locSts = "O"; |
| | | if (byDevNo != null) { |
| | | assert log != null; |
| | | if (!Cools.isEmpty(agvWrkMast.getBarcode())) { |
| | | AgvBasDevp agvBasDevp = agvBasDevpService.selectOne(new EntityWrapper<AgvBasDevp>().eq("barcode", agvWrkMast.getBarcode())); |
| | | if (!Cools.isEmpty(agvBasDevp) && agvBasDevp.getLocSts().equals("F") && !agvBasDevp.getDevNo().equals(byDevNo.getDevNo())) { |
| | | agvBasDevpService.updateLocStsAndBarcodeByDevNo(agvBasDevp.getDevNo(), locSts, "", null); |
| | | } |
| | | } |
| | | // if (!Cools.isEmpty(agvWrkMast.getBarcode())) { |
| | | // AgvBasDevp agvBasDevp = agvBasDevpService.selectOne(new EntityWrapper<AgvBasDevp>().eq("barcode", agvWrkMast.getBarcode())); |
| | | // if (!Cools.isEmpty(agvBasDevp) && agvBasDevp.getLocSts().equals("F") && !agvBasDevp.getDevNo().equals(byDevNo.getDevNo())) { |
| | | // agvBasDevpService.updateLocStsAndBarcodeByDevNo(agvBasDevp.getDevNo(), locSts, "", null); |
| | | // } |
| | | // } |
| | | log.info("料架离开时当前站点状态:{},{}", byDevNo.getDevNo(), byDevNo.getLocSts()); |
| | | if ("S".equals(byDevNo.getLocSts()) || "F".equals(byDevNo.getLocSts())) { |
| | | log.info("料架离开时当前站点状态保持不变1:{},{}", byDevNo.getDevNo(), byDevNo.getLocSts()); |