Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 68fe39ee
由
LN
编写于
2025-03-19 16:12:24 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
入库时需要先验证物料是否已在库存中
1 个父辈
1244eeb7
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
26 行增加
和
1 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/RobotBoxHandler.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/RobotBoxHandler.java
查看文件 @
68fe39e
...
...
@@ -334,6 +334,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
//返回 106=唯一码已有入库任务
//返回 107=物料已过期,无法入库
//返回 108=库位被锁定,暂停入库,重新获取库位号
//返回 96=已在库位中,NG
//返回108=已有待完成的出入库任务,直接NG
//返回110=接口验证失败,需要去XRay重新点料
...
...
@@ -435,6 +436,30 @@ public class RobotBoxHandler extends BaseDeviceHandler {
}
}
//如果已在库位中,直接NG
Integer
barcodeSet
=
dataCache
.
getCache
(
Constants
.
CACHE_SAME_BARCODE_SETTINGS
);
StoragePos
hasPos
=
storagePosManager
.
getByBarcode
(
barcode
.
getBarcode
());
if
(
hasPos
!=
null
)
{
Storage
storage
=
dataCache
.
getStorageById
(
hasPos
.
getStorageId
());
if
(
barcodeSet
==
null
||
barcodeSet
==
1
)
{
//如果已在库位中,那么自动将该库位的物料出库
log
.
info
(
" 物料"
+
barcode
.
getBarcode
()+
"已在库位中, CACHE_SAME_BARCODE_SETTINGS=1,自动出库已在库位中的物料["
+
barcode
.
getBarcode
()
+
"],设置ngReel=true"
);
taskService
.
checkout
(
storage
,
hasPos
,
true
,
true
,
""
,
""
);
}
else
{
log
.
info
(
" 物料"
+
barcode
.
getBarcode
()+
"已在库位中, CACHE_SAME_BARCODE_SETTINGS=2,标记库位["
+
hasPos
.
getPosName
()
+
"]中的物料["
+
barcode
.
getBarcode
()
+
"]为ngReel=NG"
);
hasPos
.
getBarcode
().
updateAppendData
(
"ngReel"
,
true
);
storagePosManager
.
save
(
hasPos
);
}
errorMsg
=
MessageUtils
.
getText
(
"smfcore.error.barcode.exist"
,
new
String
[]{
barcode
.
getBarcode
(),
storage
.
getName
(),
hasPos
.
getPosName
()},
MessageUtils
.
getDefaultLocal
(),
"[{0}}]已在{1}}[{2}}]中"
);
resultMap
.
put
(
"result"
,
"96"
);
resultMap
.
put
(
"msg"
,
errorMsg
);
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
NG
,
errorMsg
);
return
resultMap
;
}
try
{
if
(
ObjectUtil
.
isNotEmpty
(
preCid
))
{
...
...
@@ -486,7 +511,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
NG
,
errorMsg
);
//判断原任务是否需要NG
Integer
barcodeSet
=
dataCache
.
getCache
(
Constants
.
CACHE_SAME_BARCODE_SETTINGS
);
//
Integer barcodeSet=dataCache.getCache(Constants.CACHE_SAME_BARCODE_SETTINGS);
if
(
barcodeSet
==
null
||
barcodeSet
==
1
)
{
//原任务标记NG
dataLog
.
setNgReel
(
true
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论