Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit d58f6304
由
孙克
编写于
2024-05-14 15:00:26 +0800
浏览文件
选项
浏览文件
标签
下载
差异文件
Merge branch 'master' of
http://106.15.194.121:8083/sunke/smf-core
2 个父辈
9ce41b7f
8e570910
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
16 行增加
和
8 行删除
src/main/java/com/neotel/smfcore/custom/keboda1335/KebodaController.java
src/main/java/com/neotel/smfcore/custom/keboda1335/KebodaController.java
查看文件 @
d58f630
...
@@ -94,7 +94,7 @@ public class KebodaController {
...
@@ -94,7 +94,7 @@ public class KebodaController {
String
okMsg
=
""
;
String
okMsg
=
""
;
String
errorMsg
=
""
;
String
errorMsg
=
""
;
List
<
String
>
needRemoveReelLockPosIdList
=
new
ArrayList
<>();
//
List<String> needRemoveReelLockPosIdList = new ArrayList<>();
if
(
Strings
.
isNullOrEmpty
(
cids
))
{
if
(
Strings
.
isNullOrEmpty
(
cids
))
{
resultMap
.
put
(
"result"
,
"101"
);
resultMap
.
put
(
"result"
,
"101"
);
...
@@ -171,7 +171,13 @@ public class KebodaController {
...
@@ -171,7 +171,13 @@ public class KebodaController {
StoragePos
pos
=
null
;
StoragePos
pos
=
null
;
int
loopCount
=
0
;
while
(
pos
==
null
){
while
(
pos
==
null
){
loopCount
++;
if
(
loopCount
>=
10
){
log
.
info
(
barcode
.
getBarcode
()+
"已循环查找10次 直接跳出循环"
);
}
pos
=
taskService
.
findEmptyPosForPutIn
(
storageList
,
barcode
,
rfid
,
lastPosId
);
pos
=
taskService
.
findEmptyPosForPutIn
(
storageList
,
barcode
,
rfid
,
lastPosId
);
if
(
pos
==
null
){
if
(
pos
==
null
){
break
;
break
;
...
@@ -186,14 +192,16 @@ public class KebodaController {
...
@@ -186,14 +192,16 @@ public class KebodaController {
StoragePos
storagePos
=
storagePosManager
.
getByPosName
(
posName
);
StoragePos
storagePos
=
storagePosManager
.
getByPosName
(
posName
);
if
(
storagePos
!=
null
){
if
(
storagePos
!=
null
){
if
(
storagePos
.
getBarcode
()
!=
null
){
if
(
storagePos
.
getBarcode
()
!=
null
){
log
.
info
(
posName
+
"有物料信息,重新查找库位"
);
log
.
info
(
posName
+
"有物料信息,重新查找库位,清除条码["
+
barcode
.
getBarcode
()+
"]锁定库位"
);
ReelLockPosUtil
.
removeReelLockPosInfo
(
barcode
.
getBarcode
());
ReelLockPosInfo
reelLocInfo
=
new
ReelLockPosInfo
();
ReelLockPosInfo
reelLocInfo
=
new
ReelLockPosInfo
();
reelLocInfo
.
setBarcode
(
pos
.
getId
());
reelLocInfo
.
setBarcode
(
pos
.
getId
());
reelLocInfo
.
setCid
(
dataCache
.
getStorageById
(
pos
.
getStorageId
()).
getCid
());
reelLocInfo
.
setCid
(
dataCache
.
getStorageById
(
pos
.
getStorageId
()).
getCid
());
reelLocInfo
.
setLockPosName
(
pos
.
getPosName
());
reelLocInfo
.
setLockPosName
(
pos
.
getPosName
());
reelLocInfo
.
setLockPosId
(
pos
.
getId
());
reelLocInfo
.
setLockPosId
(
pos
.
getId
());
ReelLockPosUtil
.
addReelLockPosInfo
(
reelLocInfo
,
cidList
);
ReelLockPosUtil
.
addReelLockPosInfo
(
reelLocInfo
,
cidList
);
needRemoveReelLockPosIdList
.
add
(
pos
.
getId
());
//
needRemoveReelLockPosIdList.add(pos.getId());
pos
=
null
;
pos
=
null
;
}
}
}
}
...
@@ -309,11 +317,11 @@ public class KebodaController {
...
@@ -309,11 +317,11 @@ public class KebodaController {
DeviceMessageUtil
.
lastLineMsg
=
null
;
DeviceMessageUtil
.
lastLineMsg
=
null
;
}
}
if
(
needRemoveReelLockPosIdList
!=
null
&&
!
needRemoveReelLockPosIdList
.
isEmpty
())
{
//
if (needRemoveReelLockPosIdList != null && !needRemoveReelLockPosIdList.isEmpty()) {
for
(
String
posId
:
needRemoveReelLockPosIdList
)
{
//
for (String posId : needRemoveReelLockPosIdList) {
ReelLockPosUtil
.
removeReelLockPosInfo
(
posId
);
//
ReelLockPosUtil.removeReelLockPosInfo(posId);
}
//
}
}
//
}
return
resultMap
;
return
resultMap
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论