From 52433e1e316923c8fc26e2742e9943897c9271e7 Mon Sep 17 00:00:00 2001 From: tqs <56479841@qq.com> Date: 星期五, 31 五月 2024 08:49:26 +0800 Subject: [PATCH] # --- src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java | 40 ++++++++++++++++++++++++++++++++++++---- 1 files changed, 36 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java b/src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java index 025217f..dd2ab3b 100644 --- a/src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java +++ b/src/main/java/com/zy/asrs/task/AgvWrkMastScheduler.java @@ -50,11 +50,15 @@ .andNew().eq("io_type",53) .or().eq("io_type",1) .or().eq("io_type",57) + .or().eq("io_type",58) .or().eq("io_type",10) .or().eq("io_type",11) .or().eq("io_type",12) .or().eq("io_type",108) - .or().eq("io_type",109)); + .or().eq("io_type",109) + .or().eq("io_type",111) + .or().eq("io_type",112) + .or().eq("io_type",113)); if(!Cools.isEmpty(agvWrkMastList)){ agvWrkMastList.stream().forEach(agvWrkMast -> { agvWrkMastHandler.completedPutWayWrk(agvWrkMast); @@ -77,6 +81,7 @@ }); } } + /* 瀹氭椂澶勭悊AGV宸ヤ綔妗d腑宸ヤ綔鐘舵�佷负206.鍑哄簱瀹屾垚 涓� (101.鍑哄簱 || 110.绌烘澘鍑哄簱) @@ -108,15 +113,40 @@ .or().eq("io_type", 1) .or().eq("io_type", 10) .or().eq("io_type", 57) + .or().eq("io_type", 58) .or().eq("io_type", 11) .or().eq("io_type", 12) .or().eq("io_type", 109) - .or().eq("io_type", 108)).getRecords(); + .or().eq("io_type", 108) + .or().eq("io_type", 112) + .or().eq("io_type", 113)).getRecords(); if(!Cools.isEmpty(agvWrkMastList)){ agvWrkMastList.forEach(agvWrkMast -> { try { agvWrkMastHandler.startPutWayWrk(agvWrkMast); + } catch (IOException e) { + log.error(e.getMessage()); + } + }); + } + } + + /* + putaway锛氫笂鏋� + 瀹氭椂澶勭悊AGV宸ヤ綔妗d腑宸ヤ綔鐘舵�佷负201.鐢熸垚鍏ュ簱浠诲姟ID 涓�(鍑哄簱绫诲瀷涓� 53.鎷f枡鍐嶅叆搴� || 1.鍏ュ簱 || 10.绌烘澘鍏ュ簱鏍� || 57.鐩樼偣鍐嶅叆搴�)鐨勬暟鎹� + */ + @Scheduled(cron = "0/3 * * * * ? ") + public void startAllcationIn(){ + List<AgvWrkMast> agvWrkMastList = agvWrkMastService.selectPage(new Page<>(1, 50) + ,new EntityWrapper<AgvWrkMast>() + .eq("wrk_sts", 211) + .andNew().eq("io_type", 112)).getRecords(); + + if(!Cools.isEmpty(agvWrkMastList)){ + agvWrkMastList.forEach(agvWrkMast -> { + try { + agvWrkMastHandler.startAllcationIn(agvWrkMast); } catch (IOException e) { log.error(e.getMessage()); } @@ -138,7 +168,9 @@ .or().eq("io_type", 103) .or().eq("io_type", 11) .or().eq("io_type", 110) - .or().eq("io_type", 107)).getRecords(); + .or().eq("io_type", 107) + .or().eq("io_type", 109) + .or().eq("io_type", 108)).getRecords(); if(!Cools.isEmpty(agvWrkMastList)){ List<String> devNos = new ArrayList<>(); @@ -162,7 +194,7 @@ agvWrkMastWorking = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>() .eq("source_loc_no",agvWrkMast.getLocNo()) - .lt("loc_sts",204L)); + .le("wrk_sts",204L)); if(!Cools.isEmpty(agvWrkMastWorking)){ return; -- Gitblit v1.9.1