From e39c11465130d5b74be7f1db7df70e902403da49 Mon Sep 17 00:00:00 2001 From: pang.jiabao <pang_jiabao@163.com> Date: 星期三, 06 十一月 2024 13:05:33 +0800 Subject: [PATCH] 出库呼叫agv修改 --- src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java | 20 +++++++++++++++----- 1 files changed, 15 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java index cabc0e1..d3bc141 100644 --- a/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java +++ b/src/main/java/com/zy/asrs/service/impl/MainServiceImpl.java @@ -662,7 +662,7 @@ } // 鏇存柊宸ヤ綔妗g姸鎬佷负14澶辫触 - wrkMast.setWrkSts(14L); + wrkMast.setWrkSts(13L); wrkMast.setCrnEndTime(new Date()); if (wrkMastMapper.updateById(wrkMast) != 0) { // 澶嶄綅鍫嗗灈鏈� @@ -2115,10 +2115,10 @@ } else { staProtocol = staProtocol.clone(); } - if (!(staProtocol.stateType == DevpStateType.AUTO && staProtocol.workType == DevpWorkType.BUSY && staProtocol.requestType == DevpRequestType.OUT)){ + if (!(staProtocol.stateType == DevpStateType.AUTO && staProtocol.requestType == DevpRequestType.OUT)){ continue; } - if (staProtocol.getWorkNo() != 0){ + if (staProtocol.getWorkNo() == 0){ continue; } WrkMast wrkMast1 = wrkMastService.selectOne(new EntityWrapper<WrkMast>().eq("wrk_no", staProtocol.getWorkNo()).eq("wrk_sts", 101)); @@ -2139,7 +2139,7 @@ getAgvTaskParam(forwardAGVTaskParam,wrkMast,staProtocol.getSiteId()); String request = forwardAGVHttpRequest(forwardAGVTaskParam, "10.0.100.110:8182", "/rcms/services/rest/hikRpcService/genAgvSchedulingTask"); if ("SUCCESS".equals(request)) { - wrkMast.setWrkSts(101L); + wrkMast.setWrkSts(14L); boolean update = wrkMastService.updateById(wrkMast); if (update){ log.info("鍏ュ簱杞彂AGV浠诲姟瀹屾垚,浠诲姟鍙�:"+wrkMast.getWrkNo()); @@ -2155,11 +2155,21 @@ } private void getAgvTaskParam(ForwardAGVTaskParam agvTaskCreateParam,WrkMast param,Integer staNo){ + String sourceSite = ""; + if (staNo == 1040 || staNo == 1042) { + sourceSite = "a"; + } else if (staNo == 2010 || staNo == 2012) { + sourceSite = "b"; + } else if(staNo == 3010 || staNo ==3012) { + sourceSite = "c"; + } else if(staNo == 2000 || staNo ==2002) { + sourceSite = "d"; + } List<ForwardAGVTaskParam.PositionCodePaths> agvTaskParamList = Arrays.asList( //璧峰浣� new ForwardAGVTaskParam.PositionCodePaths(staNo.toString(),"05"), //鐩爣浣� - new ForwardAGVTaskParam.PositionCodePaths("a3","05") + new ForwardAGVTaskParam.PositionCodePaths(sourceSite,"04") ); Date date = new Date(); DecimalFormat df = new DecimalFormat("0000"); -- Gitblit v1.9.1