From de1a78dd2f4cfdb6663a1134083dd74f750faae5 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期一, 27 五月 2024 14:59:20 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/phyzasrs' into phyzasrs --- src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java | 27 ++++++++++++++++++++++++++- 1 files changed, 26 insertions(+), 1 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java index a0623aa..a48fad4 100644 --- a/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/AgvMobileServiceImpl.java @@ -392,7 +392,11 @@ ioType = 11; } } else { - ioType = 12; + if (agvLocMast.getFloor() != floor) { + ioType = 12; + } else { + ioType = 11; + } } Date now = new Date(); //鏌ヨ宸ヤ綔妗� @@ -532,9 +536,30 @@ */ @Override @Transactional + public String handBack(AgvMobileStartPakin param, Long userId) { + Date now = new Date(); + AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("source_loc_no", param.getDevNo())); + agvWrkMast.setIoType(113); + agvWrkMast.setModiUser(userId); + agvWrkMast.setModiTime(now); + if (!agvWrkMastService.update(agvWrkMast,new EntityWrapper<AgvWrkMast>().eq("wrk_no",agvWrkMast.getWrkNo()))) { + throw new CoolException("鏇存柊宸ヤ綔妗eけ璐�"); + } + return "ok"; + } + + /* + * 绔欑偣鍥為�� + */ + @Override + @Transactional public String doBack(AgvMobileStartPakin param, Long userId) { Date now = new Date(); AgvWrkMast agvWrkMast = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("loc_no", param.getDevNo())); + AgvWrkMast agvWrkMastSource = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>().eq("source_loc_no", param.getDevNo())); + if (!Cools.isEmpty(agvWrkMastSource)) { + throw new CoolException("褰撳墠绔欑偣宸叉湁閫�搴撲换鍔�"); + } Integer oldWrkNo = agvWrkMast.getWrkNo(); if (!agvWrkMast.getBarcode().equals(param.getBarcode())) { throw new CoolException("鍥為��浠诲姟鐨勮揣鏋剁爜涓庡綋鍓嶈揣鏋剁爜涓嶄竴鑷�!"); -- Gitblit v1.9.1