入库扫码添加高度

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 roadwayId;
private Integer height;
}

View File

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