Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit f12fc94b
由
LN
编写于
2024-06-25 14:29:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.API002失败时没有ng消息。
2.如果api001验证成功,查找库位号的时候发现料在库位里面,直接更新状态,不能重复添加。
1 个父辈
04970fa9
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
17 行增加
和
9 行删除
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/core/device/handler/impl/RobotBoxHandler.java
查看文件 @
f12fc94
...
@@ -417,12 +417,12 @@ public class RobotBoxHandler extends BaseDeviceHandler {
...
@@ -417,12 +417,12 @@ public class RobotBoxHandler extends BaseDeviceHandler {
resultMap
.
put
(
"msg"
,
errorMsg
);
resultMap
.
put
(
"msg"
,
errorMsg
);
}
else
{
}
else
{
String
apiBarcode
=
""
;
try
{
try
{
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
Barcode
barcode
=
codeResolve
.
resolveOneValideBarcode
(
code
);
boolean
expiredateVerify
=
dataCache
.
getExpiredateVerify
();
boolean
expiredateVerify
=
dataCache
.
getExpiredateVerify
();
if
(!
expiredateVerify
)
{
if
(!
expiredateVerify
)
{
if
(
barcode
.
getExpireDate
()
!=
null
&&
System
.
currentTimeMillis
()
>
barcode
.
getExpireDate
().
getTime
())
{
if
(
barcode
.
getExpireDate
()
!=
null
&&
System
.
currentTimeMillis
()
>
barcode
.
getExpireDate
().
getTime
())
{
// throw new ValidateException("smfcore.error.barcode.expired", "物料已过期,无法入库.");
//已有入库任务,返回NG,标记原来的入库任务
//已有入库任务,返回NG,标记原来的入库任务
resultMap
.
put
(
"result"
,
"107"
);
resultMap
.
put
(
"result"
,
"107"
);
errorMsg
=
"["
+
barcode
.
getBarcode
()
+
"]"
+
MessageUtils
.
getText
(
"smfcore.error.barcode.expired"
,
new
Locale
(
"en"
,
"US"
),
"物料已过期,无法入库"
);
errorMsg
=
"["
+
barcode
.
getBarcode
()
+
"]"
+
MessageUtils
.
getText
(
"smfcore.error.barcode.expired"
,
new
Locale
(
"en"
,
"US"
),
"物料已过期,无法入库"
);
...
@@ -602,7 +602,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
...
@@ -602,7 +602,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
}
}
barcode
=
ApiCheck
(
rfid
,
barcode
);
barcode
=
ApiCheck
(
rfid
,
barcode
);
apiBarcode
=
barcode
.
getBarcode
();
if
(
barcode
.
isToXray
()){
if
(
barcode
.
isToXray
()){
log
.
info
(
"物料["
+
barcode
.
getBarcode
()+
"]需要先去点料"
);
log
.
info
(
"物料["
+
barcode
.
getBarcode
()+
"]需要先去点料"
);
...
@@ -699,13 +699,16 @@ public class RobotBoxHandler extends BaseDeviceHandler {
...
@@ -699,13 +699,16 @@ public class RobotBoxHandler extends BaseDeviceHandler {
}
}
}
}
}
catch
(
ValidateException
ve
)
{
}
catch
(
ValidateException
ve
)
{
errorMsg
=
ve
.
getMessage
();
errorMsg
=
MessageUtils
.
getText
(
ve
.
getMsgKey
(),
ve
.
getMsgParam
(),
new
Locale
(
"en"
,
"US"
),
ve
.
getDefaultMsg
());
errorMsg
=
MessageUtils
.
getText
(
ve
.
getMsgKey
(),
ve
.
getMsgParam
(),
new
Locale
(
"en"
,
"US"
),
ve
.
getDefaultMsg
());
log
.
info
(
"Failed to find empty storage space:"
+
errorMsg
);
if
(
ObjectUtil
.
isEmpty
(
apiBarcode
)){
log
.
info
(
"Failed to find empty storage space:"
+
errorMsg
+
",update state"
);
Barcode
barcode
=
new
Barcode
();
loadingUtil
.
updateItemState
(
apiBarcode
,
""
,
INITEM_STATUS
.
API001NG
,
errorMsg
);
barcode
.
setBarcode
(
code
);
}
else
{
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
API001NG
,
errorMsg
);
log
.
info
(
"Failed to find empty storage space:"
+
errorMsg
);
Barcode
barcode
=
new
Barcode
();
barcode
.
setBarcode
(
code
);
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
API001NG
,
errorMsg
);
}
resultMap
.
put
(
"result"
,
"105"
);
resultMap
.
put
(
"result"
,
"105"
);
resultMap
.
put
(
"msg"
,
errorMsg
);
resultMap
.
put
(
"msg"
,
errorMsg
);
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/api/MicronApi.java
查看文件 @
f12fc94
...
@@ -341,7 +341,12 @@ public class MicronApi {
...
@@ -341,7 +341,12 @@ public class MicronApi {
resultMap
.
put
(
s
.
getSerialNum
(),
errMsg
);
resultMap
.
put
(
s
.
getSerialNum
(),
errMsg
);
}
}
}
}
}
else
{
}
else
if
(
ObjectUtil
.
isNotEmpty
(
errMsg
)){
log
.
info
(
"API002 ,接口通信失败:"
+
errMsg
);
return
resultMap
;
}
else
{
log
.
info
(
"API002 ,接口通信失败"
);
log
.
info
(
"API002 ,接口通信失败"
);
throw
new
ApiException
(
"smfcore.api.fail"
,
"{0} Failed to get data"
,
new
String
[]{
"API002"
});
throw
new
ApiException
(
"smfcore.api.fail"
,
"{0} Failed to get data"
,
new
String
[]{
"API002"
});
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论