Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 1abbc9a1
由
LN
编写于
2025-06-19 11:25:56 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
未找到可用库位,入库NG时信息未加入inlist.
1 个父辈
ebf00dc9
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
13 行增加
和
7 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/RobotBoxHandler.java
src/main/java/com/neotel/smfcore/custom/micron1053/api/MicronApi.java
src/main/java/com/neotel/smfcore/custom/micron1053/loading/util/LoadingUtil.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/RobotBoxHandler.java
查看文件 @
1abbc9a
...
@@ -639,7 +639,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
...
@@ -639,7 +639,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
// errorMsg = "[" + barcode.getBarcode() + "]未找到可用的[" + barcode.getPlateSize() + "x" + barcode.getHeight() + "]仓位";
// errorMsg = "[" + barcode.getBarcode() + "]未找到可用的[" + barcode.getPlateSize() + "x" + barcode.getHeight() + "]仓位";
errorMsg
=
"["
+
barcode
.
getBarcode
()
+
"]Not found available["
+
size
+
"]Position"
;
errorMsg
=
"["
+
barcode
.
getBarcode
()
+
"]Not found available["
+
size
+
"]Position"
;
resultMap
.
put
(
"msg"
,
errorMsg
);
resultMap
.
put
(
"msg"
,
errorMsg
);
loadingUtil
.
updateItemState
(
barcode
.
getBarcode
(),
""
,
INITEM_STATUS
.
NG
,
errorMsg
);
loadingUtil
.
AddOrUpdateItemState
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
NG
,
errorMsg
);
log
.
info
(
"获取["
+
code
+
"]的入库库位, ["
+
barcode
.
getBarcode
()
+
"]未找到可用的["
+
barcode
.
getPlateSize
()
+
"x"
+
barcode
.
getHeight
()
+
"]仓位"
);
log
.
info
(
"获取["
+
code
+
"]的入库库位, ["
+
barcode
.
getBarcode
()
+
"]未找到可用的["
+
barcode
.
getPlateSize
()
+
"x"
+
barcode
.
getHeight
()
+
"]仓位"
);
return
resultMap
;
return
resultMap
;
}
}
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/api/MicronApi.java
查看文件 @
1abbc9a
...
@@ -71,7 +71,7 @@ public class MicronApi {
...
@@ -71,7 +71,7 @@ public class MicronApi {
// return apiName != null && apiName.equalsIgnoreCase("Micron");
// return apiName != null && apiName.equalsIgnoreCase("Micron");
Boolean
apiTest
=
true
;
Boolean
apiTest
=
true
;
if
(
dataCache
!=
null
){
if
(
dataCache
!=
null
){
dataCache
.
getCache
(
Constants
.
CACHE_API_TEST
);
apiTest
=
dataCache
.
getCache
(
Constants
.
CACHE_API_TEST
);
if
(
apiTest
==
null
)
{
if
(
apiTest
==
null
)
{
apiTest
=
false
;
apiTest
=
false
;
dataCache
.
updateCache
(
Constants
.
CACHE_API_TEST
,
apiTest
);
dataCache
.
updateCache
(
Constants
.
CACHE_API_TEST
,
apiTest
);
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/loading/util/LoadingUtil.java
查看文件 @
1abbc9a
...
@@ -121,16 +121,16 @@ public class LoadingUtil {
...
@@ -121,16 +121,16 @@ public class LoadingUtil {
AddInListItem
(
rfid
,
barcode
,
posName
,
state
,
""
);
AddInListItem
(
rfid
,
barcode
,
posName
,
state
,
""
);
}
}
public
void
AddInListItem
(
String
rfid
,
Barcode
barcode
,
String
posName
,
String
state
,
String
ngMsg
)
{
public
InListItem
AddInListItem
(
String
rfid
,
Barcode
barcode
,
String
posName
,
String
state
,
String
ngMsg
)
{
InList
inList
=
getInlist
();
InList
inList
=
getInlist
();
if
(
inList
==
null
)
{
if
(
inList
==
null
)
{
return
;
return
null
;
}
}
//如果入库单已手动结束,不再接收新任务
//如果入库单已手动结束,不再接收新任务
if
(
inList
.
isManualFinish
()){
if
(
inList
.
isManualFinish
()){
log
.
info
(
"AddInListItem 当前入库["
+
inList
.
getName
()
+
"]已手动结束,不添加新物料:"
+
barcode
.
getBarcode
());
log
.
info
(
"AddInListItem 当前入库["
+
inList
.
getName
()
+
"]已手动结束,不添加新物料:"
+
barcode
.
getBarcode
());
return
;
return
null
;
}
}
inList
.
addRfid
(
rfid
);
inList
.
addRfid
(
rfid
);
inList
.
setStatus
(
INLIST_STATUS
.
ABNORMAL
);
inList
.
setStatus
(
INLIST_STATUS
.
ABNORMAL
);
...
@@ -152,6 +152,7 @@ public class LoadingUtil {
...
@@ -152,6 +152,7 @@ public class LoadingUtil {
inList
.
setInListItems
(
items
);
inList
.
setInListItems
(
items
);
inListManager
.
save
(
inList
);
inListManager
.
save
(
inList
);
inListCache
.
addInListToMap
(
inList
);
inListCache
.
addInListToMap
(
inList
);
return
item
;
}
}
public
InListItem
GetInlistItem
(
String
barcode
)
{
public
InListItem
GetInlistItem
(
String
barcode
)
{
...
@@ -243,8 +244,13 @@ public class LoadingUtil {
...
@@ -243,8 +244,13 @@ public class LoadingUtil {
}
}
return
false
;
return
false
;
}
}
public
InListItem
AddOrUpdateItemState
(
String
rfid
,
Barcode
barcode
,
String
posName
,
String
s
,
String
ngMsg
)
{
InListItem
item
=
updateItemState
(
barcode
.
getBarcode
(),
posName
,
s
,
ngMsg
);
if
(
item
==
null
)
{
item
=
AddInListItem
(
rfid
,
barcode
,
posName
,
s
,
ngMsg
);
}
return
item
;
}
public
InListItem
updateItemState
(
String
barcode
,
String
posName
,
String
s
,
String
ngMsg
)
{
public
InListItem
updateItemState
(
String
barcode
,
String
posName
,
String
s
,
String
ngMsg
)
{
if
(
ObjectUtil
.
isEmpty
(
ngMsg
)){
if
(
ObjectUtil
.
isEmpty
(
ngMsg
)){
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论