Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit aaaa153a
由
LN
编写于
2025-07-17 14:31:43 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
文字修改
1 个父辈
96b20c88
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
8 行删除
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
查看文件 @
aaaa153
...
@@ -918,7 +918,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
...
@@ -918,7 +918,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
}
else
{
}
else
{
log
.
error
(
"条码["
+
barcode
.
getBarcode
()
+
"]获取库位号,需要去点料,点料机CI未连接,直接异常"
);
log
.
error
(
"条码["
+
barcode
.
getBarcode
()
+
"]获取库位号,需要去点料,点料机CI未连接,直接异常"
);
throw
new
ApiException
(
"smfcore.micron.xray.offline"
,
"{0}
需要点料,点料机不在线
"
,
new
String
[]{
barcode
.
getBarcode
()});
throw
new
ApiException
(
"smfcore.micron.xray.offline"
,
"{0}
required counting partial quantity, Xray counter is not online
"
,
new
String
[]{
barcode
.
getBarcode
()});
}
}
}
}
}
else
{
}
else
{
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/api/MicronApi.java
查看文件 @
aaaa153
...
@@ -90,7 +90,7 @@ public class MicronApi {
...
@@ -90,7 +90,7 @@ public class MicronApi {
public
static
Barcode
API001
(
String
operationId
,
String
rfid
,
Barcode
barcode
)
throws
ApiException
{
public
static
Barcode
API001
(
String
operationId
,
String
rfid
,
Barcode
barcode
)
throws
ApiException
{
String
url
=
config
.
getUrl
(
config
.
api_name_001
);
String
url
=
config
.
getUrl
(
config
.
api_name_001
);
String
errorMsg
=
""
;
String
errorMsg
=
""
;
if
(
ObjectUtil
.
isEmpty
(
url
))
{
if
(
ObjectUtil
.
isEmpty
(
url
))
{
return
barcode
;
return
barcode
;
}
}
...
@@ -144,7 +144,7 @@ public class MicronApi {
...
@@ -144,7 +144,7 @@ public class MicronApi {
// "xrayReq": false,
// "xrayReq": false,
// "transactionId": "833ec781-1eba-4860-bb91-f667cd89afd4",
// "transactionId": "833ec781-1eba-4860-bb91-f667cd89afd4",
// "status": "Success"
// "status": "Success"
errorMsg
=
getDErrorMsg
(
result
);
errorMsg
=
getDErrorMsg
(
result
);
// if (result.isOk() && result.statusIsSuccess()) {
// if (result.isOk() && result.statusIsSuccess()) {
if
(
result
.
isOk
()
&&
result
.
IsSuccess
())
{
if
(
result
.
isOk
()
&&
result
.
IsSuccess
())
{
String
partNumber
=
result
.
getResult
(
"partNumber"
);
String
partNumber
=
result
.
getResult
(
"partNumber"
);
...
@@ -196,19 +196,20 @@ public class MicronApi {
...
@@ -196,19 +196,20 @@ public class MicronApi {
if
(
ObjectUtil
.
isEmpty
(
errmsg
))
{
if
(
ObjectUtil
.
isEmpty
(
errmsg
))
{
errmsg
=
errorMsg
;
errmsg
=
errorMsg
;
}
}
String
error
=
result
.
getErrorValue
(
"error"
);
Object
errorObj
=
result
.
getErrorValue
(
"error"
);
if
(
error
==
null
)
{
if
(
ObjectUtil
.
isEmpty
(
errorObj
))
{
error
=
""
;
error
Obj
=
""
;
}
}
String
error
=
errorObj
.
toString
();
// String message=result.getErrorValue("message");
// String message=result.getErrorValue("message");
// loadingUtil.AddErrorItem(rfid, barcode,error,errmsg);
// loadingUtil.AddErrorItem(rfid, barcode,error,errmsg);
if
(
ObjectUtil
.
isNotEmpty
(
errmsg
))
{
if
(
ObjectUtil
.
isNotEmpty
(
errmsg
))
{
log
.
info
(
"API001 ,验证失败,错误信息:"
+
error
+
";"
+
errmsg
);
log
.
info
(
"API001 ,验证失败,错误信息:"
+
error
+
";"
+
errmsg
);
throw
new
ApiException
(
"smfcore.api.001.error"
,
error
+
";"
+
errmsg
);
throw
new
ApiException
(
"smfcore.api.001.error"
,
error
+
";"
+
errmsg
);
}
else
{
}
else
{
log
.
info
(
"API001 ,验证失败,获取数据失败:"
+
errmsg
);
log
.
info
(
"API001 ,验证失败,获取数据失败:"
+
errmsg
);
throw
new
ApiException
(
"smfcore.api.fail"
,
"{0} Failed to get data"
,
new
String
[]{
"API001 : "
+
result
.
getResponseData
()});
throw
new
ApiException
(
"smfcore.api.fail"
,
"{0} Failed to get data"
,
new
String
[]{
"API001 : "
+
result
.
getResponseData
()});
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论