From 0505d6ed3597d5f2694bac05c5daa9b6a498c8ce Mon Sep 17 00:00:00 2001 From: Comair <1464848666@qq.com> Date: Mon, 5 Aug 2024 09:17:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E6=98=AF=E5=90=A6=E8=B6=8A?= =?UTF-8?q?=E5=BA=93=EF=BC=8C=E6=98=AF=E5=90=A6=E6=9A=82=E5=81=9C=E5=87=BA?= =?UTF-8?q?=E5=BA=93=E6=8C=89=E9=92=AE=E8=AE=BE=E7=BD=AE=E7=9A=84=E7=8A=B6?= =?UTF-8?q?=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../business/BaseBarcodesController.java | 23 ++++++++++++ .../shkj/wms/scheduled/ScheduledTasks.java | 36 +------------------ .../wms/service/IBaseBarcodesOutService.java | 4 +++ .../impl/BaseBarcodesOutServiceImpl.java | 28 +++++++++++++++ 4 files changed, 56 insertions(+), 35 deletions(-) diff --git a/shkj-wms/src/main/java/com/shkj/wms/controller/business/BaseBarcodesController.java b/shkj-wms/src/main/java/com/shkj/wms/controller/business/BaseBarcodesController.java index 2c8b38c..58e0cbc 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/controller/business/BaseBarcodesController.java +++ b/shkj-wms/src/main/java/com/shkj/wms/controller/business/BaseBarcodesController.java @@ -254,6 +254,18 @@ public class BaseBarcodesController extends BaseController { return iBaseBarcodesOutService.handOskipOverWareStatus(status); } + /** + * 获取是否停止出库 + * start 启动出库 + * stop 停止出库 + * @return + */ + @GetMapping("/getStartStopOutboundStatus") + @RepeatSubmit + public Result getStartStopOutboundStatus(){ + return iBaseBarcodesOutService.getStartStopOutboundStatus(); + } + /** * 手动控制是否越库 * start 启动越库 @@ -267,6 +279,17 @@ public class BaseBarcodesController extends BaseController { return iBaseBarcodesOutService.handOskipOverWareStatus(status); } + /** + * 获取是否是否越库的状态 + * start 启动越库 + * stop 停止越库 + * @return + */ + @GetMapping("/getOskipOverWareStatus") + @RepeatSubmit + public Result getOskipOverWareStatus(){ + return iBaseBarcodesOutService.getOskipOverWareStatus(); + } } diff --git a/shkj-wms/src/main/java/com/shkj/wms/scheduled/ScheduledTasks.java b/shkj-wms/src/main/java/com/shkj/wms/scheduled/ScheduledTasks.java index c529b29..bd1d63f 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/scheduled/ScheduledTasks.java +++ b/shkj-wms/src/main/java/com/shkj/wms/scheduled/ScheduledTasks.java @@ -2124,7 +2124,7 @@ public class ScheduledTasks { //立库输送线接驳点-入 String toLocation = ""; int agvTaskType = 0; - BusinTaskExeBo exeBo = new BusinTaskExeBo(); + // BusinTaskExeBo exeBo = new BusinTaskExeBo(); Long plcId = null; Long stkPlcId = null; @@ -2141,9 +2141,6 @@ public class ScheduledTasks { //根据车型分配库位 先判断该任务是否已经分配了货位 Result locationVoResult = null; if (ObjectUtils.isEmpty(businDataTaskVo.getToRow())) { - // locationVoResult = iBaseLocationService.assignEmptyLocation(vehicheModel, color,DateUtils.getDate(),businDataTaskGoodsVos); - // TODO: 2024/6/28 zjx - // locationVoResult = iBaseLocationService.assignEmptyLocationByStock(goodsNo, vehicheModel, DateUtils.getDate(), businDataTaskGoodsVos); AssingEmptyLocBo emptyLocBo = new AssingEmptyLocBo(); emptyLocBo.setBatch(DateUtils.getDate()); @@ -2186,13 +2183,6 @@ public class ScheduledTasks { BaseDevicePlcVo baseDevicePlcVo = baseLocationPlcMapper.selectBaseDevicePlc(pointQueryBo); stkPlcId = baseDevicePlcVo.getPlcId(); - exeBo.setTaskCode(taskId); - exeBo.setBusinDataTaskGoodsVo(businDataTaskGoodsVos); - exeBo.setContainerId(containerId); - exeBo.setBaseLocationVo(locationVo); - exeBo.setTransNo("1"); - exeBo.setTransQual("1"); - //根据取货时的的点位拿到对应的交互点用作取货完成点 agvTaskType = Integer.valueOf(basePointDeviceVo.getIsDown()); if (businDataTaskVo.getTaskType().equals("7")) { @@ -2226,11 +2216,6 @@ public class ScheduledTasks { BasePointDeviceVo pointDeviceout = basePointDeviceMapper.selectBasePointByGroupno(pointQueryBo); toLocation = pointDeviceout.getPointNo(); agvTaskType = Integer.valueOf(pointDeviceout.getIsDown()); - exeBo.setTaskCode(taskId); - exeBo.setBusinDataTaskGoodsVo(businDataTaskGoodsVos); - exeBo.setContainerId(containerId); - exeBo.setTransNo("1"); - exeBo.setTransQual("1"); } } @@ -2242,11 +2227,6 @@ public class ScheduledTasks { BasePointDeviceVo pointDeviceout = basePointDeviceMapper.selectBasePointByGroupno(pointQueryBo); toLocation = pointDeviceout.getPointNo(); agvTaskType = Integer.valueOf(pointDeviceout.getIsDown()); - exeBo.setTaskCode(taskId); - exeBo.setBusinDataTaskGoodsVo(businDataTaskGoodsVos); - exeBo.setContainerId(containerId); - exeBo.setTransNo("1"); - exeBo.setTransQual("1"); } @@ -2296,20 +2276,6 @@ public class ScheduledTasks { if (booleanResult.getCode() == HttpStatus.SUCCESS.getCode()) { businDataTaskVo.setTaskPath(toLocation); businDataTaskVo.setTaskStatus(TaskStatusEnum.wait_callback.getValue()); - - //生成入库单 - if (randome.equals("P01")) { - // Result stringResult = iPutInOutStorageService.exeTaskPutinStorage(exeBo); - - //生成入库单成功 -// if (stringResult.getCode() == HttpStatus.SUCCESS.getCode()) { -// businDataTaskVo.setTransId(stringResult.getData()); -// } else { - // businDataTaskVo.setTaskStatus(TaskStatusEnum.err.getValue()); - // businDataTaskVo.setExceptionMsg("生成入库单失败"); - // } - } - } //立库输送线PLCID businDataTaskVo.setDpsNoOne(plcId); diff --git a/shkj-wms/src/main/java/com/shkj/wms/service/IBaseBarcodesOutService.java b/shkj-wms/src/main/java/com/shkj/wms/service/IBaseBarcodesOutService.java index 7ddd856..5c96362 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/service/IBaseBarcodesOutService.java +++ b/shkj-wms/src/main/java/com/shkj/wms/service/IBaseBarcodesOutService.java @@ -125,5 +125,9 @@ public interface IBaseBarcodesOutService extends IService { Result handOskipOverWareStatus(String status); + Result getStartStopOutboundStatus(); + + Result getOskipOverWareStatus(); + Result handStartStopOutboundStatus(String status); } diff --git a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseBarcodesOutServiceImpl.java b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseBarcodesOutServiceImpl.java index ded4110..4b64dc7 100644 --- a/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseBarcodesOutServiceImpl.java +++ b/shkj-wms/src/main/java/com/shkj/wms/service/impl/BaseBarcodesOutServiceImpl.java @@ -397,6 +397,21 @@ public class BaseBarcodesOutServiceImpl extends ServiceImpl getOskipOverWareStatus() { + Object o = redisTemplate.opsForValue().get(RedisConstant.redisSkipOverWare); + if(o== null){ + return Result.ok().data("stop"); + } + return Result.ok().data(o.toString()); + } + + + /** * 是否启动/或暂停出库 @@ -415,6 +430,19 @@ public class BaseBarcodesOutServiceImpl extends ServiceImpl getStartStopOutboundStatus() { + Object o = redisTemplate.opsForValue().get(RedisConstant.redisStartStopOutbound); + if(o== null){ + return Result.ok().data("start"); + } + return Result.ok().data(o.toString()); + } + /** * 手动下发出库任务-恢复 :暂停 ,已取消是否是作废,不可恢复 ; 2出库中 给堆垛机下发命令成功,更改状态