Commit 1b2e6ef9 zshaohui

NL料架,扫描库位时,判断是否有任务

1 个父辈 d192273c
......@@ -283,6 +283,13 @@ public class NLShelfHandler extends BaseDeviceHandler {
}
}
if (pos != null) {
//判断当前库位是否有任务
Collection<String> excludePosIds = taskService.excludePosIds();
if(excludePosIds.contains(pos.getId())){
throw new ValidateException("smfcore.shelf.nextPos.hasTask", "库位[{0}]已有任务,请重新扫描库位码",new String[]{pos.getPosName()});
}
//扫描的为库位条码,先关掉上一个库位灯, 当前库位中没有物料的话点亮库位灯
closeLastPos(token);
//判断库位是否是对应设备或者租
......
支持 Markdown 格式
你添加了 0 到此讨论。请谨慎行事。
Finish editing this message first!