入库扫码添加高度

This commit is contained in:
liuhanqing
2025-12-03 11:32:31 +08:00
parent 1a4ab88f21
commit 621f154fcc
5 changed files with 14 additions and 4 deletions

View File

@@ -17,4 +17,6 @@ public class RequestEnter {
private String warehouseId; private String warehouseId;
private String roadwayId; private String roadwayId;
private Integer height;
} }

View File

@@ -195,7 +195,10 @@ public class ToWmsServiceImpl implements IToWmsService {
if (StrUtil.isEmpty(requestEnter.getTrayCode())) { if (StrUtil.isEmpty(requestEnter.getTrayCode())) {
return AjaxResult.error("托盘条码不能为空"); return AjaxResult.error("托盘条码不能为空");
} }
log.info("扫码内容{}", requestEnter.getTrayCode()); if (requestEnter.getHeight()==0) {
return AjaxResult.error("未检测到入库高度");
}
log.info("扫码内容{},入库高度{}", requestEnter.getTrayCode(), requestEnter.getHeight());
MydoJob param = new MydoJob(); MydoJob param = new MydoJob();
param.setStatus("1"); param.setStatus("1");
@@ -210,6 +213,11 @@ public class ToWmsServiceImpl implements IToWmsService {
BasCargoSpace basCargoSpaceParam = new BasCargoSpace(); BasCargoSpace basCargoSpaceParam = new BasCargoSpace();
basCargoSpaceParam.setWarehouseId(mydoJob.getWarehouseId()); basCargoSpaceParam.setWarehouseId(mydoJob.getWarehouseId());
basCargoSpaceParam.setRoadwayId(mydoJob.getRoadwayId()); basCargoSpaceParam.setRoadwayId(mydoJob.getRoadwayId());
if (requestEnter.getHeight()==1){
basCargoSpaceParam.setCargoHight("975");
}else {
basCargoSpaceParam.setCargoHight("1519");
}
BasCargoSpace basCargoSpace = basCargoSpaceService.selectEmptyCargoSpaceByWarehouseId(basCargoSpaceParam); BasCargoSpace basCargoSpace = basCargoSpaceService.selectEmptyCargoSpaceByWarehouseId(basCargoSpaceParam);
if (ObjUtil.isNull(basCargoSpace)){ if (ObjUtil.isNull(basCargoSpace)){
return AjaxResult.error("没有空货位"); return AjaxResult.error("没有空货位");

View File

@@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = "ForTucky WMS system" VUE_APP_TITLE = "WMS system"
# 开发环境配置 # 开发环境配置
ENV = 'development' ENV = 'development'

View File

@@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = "ForTucky WMS system" VUE_APP_TITLE = "WMS system"
# 生产环境配置 # 生产环境配置
ENV = 'production' ENV = 'production'

View File

@@ -1,5 +1,5 @@
# 页面标题 # 页面标题
VUE_APP_TITLE = "ForTucky WMS system" VUE_APP_TITLE = "WMS system"
BABEL_ENV = production BABEL_ENV = production