Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c8acf41d
由
zshaohui
编写于
2023-10-09 09:39:32 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.xray skip展示问题修改
2.没有获取到库位号,inlistitem 修改为ng
1 个父辈
b8f51e01
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
52 行增加
和
5 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/RobotBoxHandler.java
src/main/java/com/neotel/smfcore/core/inList/service/po/InListItem.java
src/main/java/com/neotel/smfcore/custom/micron1053/loading/LoadingController.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
查看文件 @
c8acf41
...
...
@@ -646,7 +646,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
// errorMsg = "[" + barcode.getBarcode() + "]未找到可用的[" + barcode.getPlateSize() + "x" + barcode.getHeight() + "]仓位";
errorMsg
=
"["
+
barcode
.
getBarcode
()
+
"]Not found available["
+
size
+
"]Position"
;
resultMap
.
put
(
"msg"
,
errorMsg
);
loadingUtil
.
updateItemState
(
barcode
.
getBarcode
(),
""
,
INITEM_STATUS
.
API001NG
,
errorMsg
);
}
}
}
catch
(
ValidateException
ve
)
{
...
...
@@ -792,7 +792,7 @@ public class RobotBoxHandler extends BaseDeviceHandler {
}
}
else
{
barcode
.
setInListName
(
inList
.
getName
());
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
PutIn
);
loadingUtil
.
AddInListItem
(
rfid
,
barcode
,
""
,
INITEM_STATUS
.
PutIn
,
barcode
.
isToXray
()
);
}
return
barcode
;
...
...
src/main/java/com/neotel/smfcore/core/inList/service/po/InListItem.java
查看文件 @
c8acf41
...
...
@@ -119,6 +119,11 @@ public class InListItem extends BasePo implements Serializable {
*/
private
List
<
ItemReelInfo
>
reelLists
;
/**
* 是否需要点料
*/
private
Boolean
toXray
;
public
void
addReelInfo
(
ItemReelInfo
reelInfo
){
if
(
ObjectUtil
.
isEmpty
(
ri
)){
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/loading/LoadingController.java
查看文件 @
c8acf41
...
...
@@ -85,7 +85,7 @@ public class LoadingController {
dto
.
setNg
(
dto
.
getNg
()
+
1
);
}
else
if
(
item
.
isFailure
())
{
dto
.
setFailure
(
dto
.
getFailure
()
+
1
);
}
else
if
(
item
.
is
Xray
())
{
}
else
if
(
item
.
getToXray
()
!=
null
&&
!
item
.
getTo
Xray
())
{
dto
.
setXRay
(
dto
.
getXRay
()
+
1
);
}
dtoMap
.
put
(
dto
.
getMaterialType
(),
dto
);
...
...
@@ -140,9 +140,12 @@ public class LoadingController {
is
=
true
;
}
else
if
(
item
.
isFailure
()
&&
state
.
equalsIgnoreCase
(
"failure"
))
{
is
=
true
;
}
else
if
(
item
.
isXray
()
&&
state
.
equalsIgnoreCase
(
"xray"
))
{
}
else
if
(
item
.
getToXray
()
!=
null
&&
!
item
.
getToXray
(
))
{
is
=
true
;
}
/*else if (item.isXray() && state.equalsIgnoreCase("xray")) {
is = true;
}*/
if
(
is
)
{
Barcode
code
=
barcodeManager
.
findByBarcode
(
item
.
getRi
());
...
...
src/main/java/com/neotel/smfcore/custom/micron1053/loading/util/LoadingUtil.java
查看文件 @
c8acf41
...
...
@@ -85,6 +85,37 @@ public class LoadingUtil {
}
//获取库位号成功,增加一个正在入库的
public
void
AddInListItem
(
String
rfid
,
Barcode
barcode
,
String
posName
,
String
state
,
Boolean
toXray
)
{
InList
inList
=
getInlist
();
if
(
inList
==
null
)
{
return
;
}
inList
.
addRfid
(
rfid
);
inList
.
setStatus
(
INLIST_STATUS
.
ABNORMAL
);
String
mtype
=
MicronDataCache
.
GetReelType
(
barcode
.
getPlateSize
(),
barcode
.
getHeight
());
log
.
info
(
"为入库单["
+
inList
.
getName
()
+
"]增加一条入库信息:barcode["
+
barcode
.
getBarcode
()
+
"],mtype["
+
mtype
+
"],pn["
+
barcode
.
getPartNumber
()
+
"],rfid["
+
rfid
+
"],posName["
+
posName
+
"],s["
+
state
+
"]"
);
InListItem
item
=
InListItem
.
newMItem
(
inList
.
getName
(),
barcode
,
rfid
,
posName
,
state
,
mtype
);
if
(
inList
.
getEndRfidList
()
!=
null
&&
inList
.
getEndRfidList
().
contains
(
rfid
))
{
item
.
setRfidEnd
(
true
);
}
if
(
toXray
!=
null
)
{
item
.
setToXray
(
toXray
);
}
item
=
inListItemManager
.
save
(
item
);
List
<
InListItem
>
items
=
inList
.
getInListItems
();
items
.
add
(
item
);
inList
.
setInListItems
(
items
);
inListManager
.
save
(
inList
);
inListCache
.
addInListToMap
(
inList
);
}
//获取库位号成功,增加一个正在入库的
public
void
AddInListItem
(
String
rfid
,
Barcode
barcode
,
String
posName
,
String
state
){
AddInListItem
(
rfid
,
barcode
,
posName
,
state
,
""
);
}
...
...
@@ -139,7 +170,11 @@ public class LoadingUtil {
updateItemState
(
barcode
,
""
,
s
);
}
public
InListItem
updateItemState
(
String
barcode
,
String
posName
,
String
s
)
{
public
InListItem
updateItemState
(
String
barcode
,
String
posName
,
String
s
){
return
updateItemState
(
barcode
,
posName
,
s
,
""
);
}
public
InListItem
updateItemState
(
String
barcode
,
String
posName
,
String
s
,
String
ngMsg
)
{
InList
inList
=
getInlist
();
...
...
@@ -157,6 +192,10 @@ public class LoadingUtil {
item
.
setPosName
(
posName
);
}
if
(
StringUtils
.
isNotBlank
(
ngMsg
)){
item
.
setNgMsg
(
ngMsg
);
}
update
=
true
;
item
.
setState
(
s
);
item
=
inListItemManager
.
save
(
item
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论