| | |
| | | .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",112)); |
| | | if(!Cools.isEmpty(agvWrkMastList)){ |
| | | agvWrkMastList.stream().forEach(agvWrkMast -> { |
| | | agvWrkMastHandler.completedPutWayWrk(agvWrkMast); |
| | |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | /* |
| | | 定时处理AGV工作档中工作状态为206.出库完成 且 (101.出库 || 110.空板出库) |
| | |
| | | .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)).getRecords(); |
| | | |
| | | if(!Cools.isEmpty(agvWrkMastList)){ |
| | | agvWrkMastList.forEach(agvWrkMast -> { |
| | | try { |
| | | agvWrkMastHandler.startPutWayWrk(agvWrkMast); |
| | | } catch (IOException e) { |
| | | log.error(e.getMessage()); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | /* |
| | | putaway:上架 |
| | | 定时处理AGV工作档中工作状态为201.生成入库任务ID 且(出库类型为 53.拣料再入库 || 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()); |
| | | } |
| | |
| | | .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<>(); |
| | |
| | | if(!Cools.isEmpty(agvWrkMastWorking)){ |
| | | return; |
| | | } |
| | | |
| | | agvWrkMastWorking = agvWrkMastService.selectOne(new EntityWrapper<AgvWrkMast>() |
| | | .eq("source_loc_no",agvWrkMast.getLocNo()) |
| | | .le("wrk_sts",204L)); |
| | | |
| | | if(!Cools.isEmpty(agvWrkMastWorking)){ |
| | | return; |
| | | } |
| | | |
| | | agvWrkMastHandler.startPutWayWrk(agvWrkMast); |
| | | } catch (IOException e) { |