Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit ad6b90ff
由
LN
编写于
2023-08-16 15:37:55 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.msLevel修改。
2.api001 接口bug修改
1 个父辈
86fd2dcd
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
47 行增加
和
19 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/RobotBoxHandler.java
src/main/java/com/neotel/smfcore/custom/micron1053/api/AMaterialBean.java
src/main/java/com/neotel/smfcore/custom/micron1053/api/MicronApi.java
src/main/java/com/neotel/smfcore/custom/neotel/NeotelController.java
src/main/resources/messages.properties
src/main/resources/messages_en_US.properties
src/main/resources/messages_ja_JP.properties
src/main/resources/messages_zh_CN.properties
src/main/resources/messages_zh_TW.properties
src/main/java/com/neotel/smfcore/core/device/handler/impl/RobotBoxHandler.java
查看文件 @
ad6b90f
...
...
@@ -647,37 +647,42 @@ public class RobotBoxHandler extends BaseDeviceHandler {
}
private
Barcode
ApiCheck
(
String
rfid
,
Barcode
barcode
)
throws
ApiException
{
if
(
ObjectUtil
.
isEmpty
(
rfid
))
{
if
(
ObjectUtil
.
isEmpty
(
rfid
))
{
return
barcode
;
}
//是否启用
if
(!
MicronApi
.
isEnable
())
{
if
(!
MicronApi
.
isEnable
())
{
return
barcode
;
}
barcode
.
setToXray
(
false
);
barcode
.
setInListName
(
""
);
String
operationId
=
""
;
InList
inList
=
loadingUtil
.
getInlist
();
if
(
inList
==
null
){
String
operationId
=
""
;
InList
inList
=
loadingUtil
.
getInlist
();
if
(
inList
==
null
)
{
return
barcode
;
}
if
(!
inList
.
isValidRfid
(
rfid
))
{
return
barcode
;
}
if
(!
inList
.
isValidRfid
(
rfid
)){
operationId
=
inList
.
getOperationId
();
if
(
ObjectUtil
.
isEmpty
(
operationId
))
{
log
.
info
(
"条码["
+
barcode
.
getBarcode
()
+
"]获取库位号,operationId 为空,不需要接口验证"
);
return
barcode
;
}
barcode
=
MicronApi
.
API001
(
operationId
,
barcode
);
if
(
barcode
==
null
)
{
barcode
=
MicronApi
.
API001
(
operationId
,
barcode
);
if
(
barcode
==
null
)
{
throw
new
ValidateException
(
"smfcore.error.barcode.invalid"
,
"未找到有效的条码"
);
}
if
(
barcode
.
isToXray
())
{
log
.
info
(
"条码[]获取库位号,需要去点料,点料机未连接,直接异常"
);
throw
new
ApiException
(
"smfcore.micron.xray.offline"
,
"{0}需要点料,点料机不在线"
,
new
String
[]{
barcode
.
getBarcode
()});
if
(
barcode
.
isToXray
())
{
log
.
info
(
"条码[
"
+
barcode
.
getBarcode
()
+
"
]获取库位号,需要去点料,点料机未连接,直接异常"
);
throw
new
ApiException
(
"smfcore.micron.xray.offline"
,
"{0}需要点料,点料机不在线"
,
new
String
[]{
barcode
.
getBarcode
()});
// barcode.setToXray(true);
// barcode.setInListName(inList.getName());
// loadingUtil.AddInListItem(rfid,barcode,"", INITEM_STATUS.
PutIn
);
}
else
{
// loadingUtil.AddInListItem(rfid,barcode,"", INITEM_STATUS.
XRay
);
}
else
{
barcode
.
setInListName
(
inList
.
getName
());
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
XRay
);
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
PutIn
);
}
return
barcode
;
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/api/AMaterialBean.java
查看文件 @
ad6b90f
...
...
@@ -36,6 +36,11 @@ public class AMaterialBean {
bean
.
qty
=
barcode
.
getAmount
();
bean
.
expirationDateStr
=
barcode
.
getExpireDateStr
();
bean
.
msLevel
=
barcode
.
getMsl
();
if
(
bean
.
msLevel
.
startsWith
(
"E"
)){
bean
.
msLevel
=
bean
.
msLevel
.
substring
(
1
);
}
else
if
(
bean
.
msLevel
.
startsWith
(
"7E"
)){
bean
.
msLevel
=
bean
.
msLevel
.
substring
(
2
);
}
String
reelType
=
MicronDataCache
.
GetReelType
(
barcode
.
getPlateSize
(),
barcode
.
getHeight
());
bean
.
containerType
=
reelType
;
//类型
bean
.
arraySize
=
barcode
.
getQ1Item
();
//1Q
...
...
@@ -55,6 +60,7 @@ public class AMaterialBean {
resultMap
.
put
(
"mfgName"
,
mfgName
);
resultMap
.
put
(
"qty"
,
qty
);
resultMap
.
put
(
"expirationDateStr"
,
expirationDateStr
);
resultMap
.
put
(
"msLevel"
,
msLevel
);
resultMap
.
put
(
"containerType"
,
containerType
);
//类型
resultMap
.
put
(
"arraySize"
,
arraySize
);
//1Q
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/api/MicronApi.java
查看文件 @
ad6b90f
...
...
@@ -521,6 +521,7 @@ public class MicronApi {
log
.
info
(
"调用MES接口 Api011: url=["
+
url
+
"] "
);
MicronResult
result
=
HttpHelper
.
getMicronJson
(
url
);
String
operationId
=
result
.
getResult
(
"operationId"
);
log
.
info
(
" Api011 ,mode="
+
mode
+
",userName="
+
userName
+
", 获取到 operationId="
+
operationId
);
return
operationId
;
}
catch
(
Exception
e
)
{
log
.
error
(
url
+
"出错"
,
e
);
...
...
src/main/java/com/neotel/smfcore/custom/neotel/NeotelController.java
查看文件 @
ad6b90f
...
...
@@ -220,7 +220,14 @@ public class NeotelController {
resultMap
.
put
(
"mfgName"
,
barcode
.
getProvider
());
resultMap
.
put
(
"qty"
,
barcode
.
getAmount
());
resultMap
.
put
(
"expirationDateStr"
,
barcode
.
getExpireDateStr
());
resultMap
.
put
(
"msLevel"
,
barcode
.
getMsl
());
String
msgLevel
=
barcode
.
getMsl
();
if
(
msgLevel
.
startsWith
(
"E"
)){
msgLevel
=
msgLevel
.
substring
(
1
);
}
else
if
(
msgLevel
.
startsWith
(
"7E"
)){
msgLevel
=
msgLevel
.
substring
(
2
);
}
resultMap
.
put
(
"msLevel"
,
msgLevel
);
String
reelType
=
MicronDataCache
.
GetReelType
(
barcode
.
getPlateSize
(),
barcode
.
getHeight
());
resultMap
.
put
(
"containerType"
,
reelType
);
//类型
resultMap
.
put
(
"arraySize"
,
barcode
.
getQ1Item
());
//1Q
...
...
src/main/resources/messages.properties
查看文件 @
ad6b90f
...
...
@@ -352,6 +352,7 @@ smfcore.expiration.notExist=\u8FC7\u671F\u914D\u7F6E[{0}]\u4E0D\u5B58\u5728
smfcore.micron.xray.offline={0}
\u9700\u8981\u
70B9
\u6599\u
FF0C
\u
70B9
\u6599\u
673A
\u
4E0D
\u5728\u
7EBF
smfcore.micron.nodata
=
\u
672A
\u
627E
\u5230\u
4FE1
\u
606F
smfcore.api.fail
=
{0} Failed to get data
smfcore.micron.apiClose
=
Not yet open
#smfclient.nlp.onlyOneTray=\u4E0D\u53EF\u540C\u65F6\u653E\u5165\u591A\u76D8\u7269\u6599:{0}
#smfclient.nlp.cannotFindPos={0}\u672A\u627E\u5230\u5E93\u4F4D:{1}
#smfclient.nlp.inputOk={0}\u5165\u5E93\u5230{1}\u6210\u529F
...
...
src/main/resources/messages_en_US.properties
查看文件 @
ad6b90f
...
...
@@ -350,4 +350,6 @@ smfcore.m.emptyOut=No Reel Pickup From Mycronics
smfcore.expiration.ameExists
=
expiration date config[{0}]already exists
smfcore.expiration.notExist
=
expiration date config[{0}]does not exist
smfcore.micron.xray.offline
=
{0}Need to go to the count
\u
FF0CThe ordering machine is not online.
smfcore.micron.nodata
=
No information found
\ No newline at end of file
smfcore.micron.nodata
=
No information found
smfcore.api.fail
=
{0} Failed to get data
smfcore.micron.apiClose
=
Not yet open
\ No newline at end of file
src/main/resources/messages_ja_JP.properties
查看文件 @
ad6b90f
...
...
@@ -347,4 +347,6 @@ smfcore.m.emptyOut=No Reel Pickup From Mycronics
smfcore.expiration.ameExists
=
\u
8FC7
\u
671F
\u
914D
\u
7F6E[{0}]
\u
5DF2
\u
5B58
\u5728
smfcore.expiration.notExist=
\u
8FC7
\u
671F
\u
914D
\u
7F6E[{0}]
\u
4E0D
\u
5B58
\u5728
smfcore.micron.xray.offline={0}
\u9700\u8981\u
70B9
\u6599\u
FF0C
\u
70B9
\u6599\u
673A
\u
4E0D
\u5728\u
7EBF
smfcore.micron.nodata
=
\u
672A
\u
627E
\u5230\u
4FE1
\u
606F
\ No newline at end of file
smfcore.micron.nodata
=
\u
672A
\u
627E
\u5230\u
4FE1
\u
606F
smfcore.api.fail
=
{0} Failed to get data
smfcore.micron.apiClose
=
Not yet open
\ No newline at end of file
src/main/resources/messages_zh_CN.properties
查看文件 @
ad6b90f
...
...
@@ -347,4 +347,6 @@ smfcore.m.emptyOut=No Reel Pickup From Mycronics
smfcore.expiration.ameExists
=
\u
8FC7
\u
671F
\u
914D
\u
7F6E[{0}]
\u
5DF2
\u
5B58
\u5728
smfcore.expiration.notExist=
\u
8FC7
\u
671F
\u
914D
\u
7F6E[{0}]
\u
4E0D
\u
5B58
\u5728
smfcore.micron.xray.offline={0}
\u9700\u8981\u
70B9
\u6599\u
FF0C
\u
70B9
\u6599\u
673A
\u
4E0D
\u5728\u
7EBF
smfcore.micron.nodata
=
\u
672A
\u
627E
\u5230\u
4FE1
\u
606F
\ No newline at end of file
smfcore.micron.nodata
=
\u
672A
\u
627E
\u5230\u
4FE1
\u
606F
smfcore.api.fail
=
{0}
\u
83B7
\u
53D6
\u6570\u
636E
\u5931\u
8D25
smfcore.micron.apiClose
=
API
\u
529F
\u
80FD
\u
672A
\u
5F00
\u
653E
\ No newline at end of file
src/main/resources/messages_zh_TW.properties
查看文件 @
ad6b90f
...
...
@@ -348,4 +348,6 @@ smfcore.m.emptyOut=No Reel Pickup From Mycronics
smfcore.expiration.ameExists
=
\u
904E
\u
671F
\u
914D
\u
7F6E[{0}]
\u
5DF2
\u
5B58
\u5728
smfcore.expiration.notExist=
\u
904E
\u
671F
\u
914D
\u
7F6E[{0}]
\u
4E0D
\u
5B58
\u5728
smfcore.micron.xray.offline={0}
\u9700\u8981\u
9EDE
\u6599\u
FF0C
\u
9EDE
\u6599\u
6A5F
\u
4E0D
\u5728\u
7DDA
smfcore.micron.nodata
=
\u
672A
\u
627E
\u5230\u
4FE1
\u
606F
\ No newline at end of file
smfcore.micron.nodata
=
\u
672A
\u
627E
\u5230\u
4FE1
\u
606F
smfcore.api.fail
=
{0}
\u
83B7
\u
53D6
\u6570\u
636E
\u5931\u
8D25
smfcore.micron.apiClose
=
API
\u
529F
\u
80FD
\u
672A
\u
5F00
\u
653E
\ No newline at end of file
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论