Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 114428f8
由
zshaohui
编写于
2023-11-29 10:42:42 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1.出库不完成bug修改
2.日志打印有问题的库位
1 个父辈
f6ad602a
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
11 行增加
和
9 行删除
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLPShelfHandler.java
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
src/main/java/com/neotel/smfcore/hikvision_mobile/HikVisionController.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/NLPShelfHandler.java
查看文件 @
114428f
...
...
@@ -383,6 +383,7 @@ public class NLPShelfHandler extends BaseDeviceHandler{
break
;
}
}
catch
(
Exception
e
)
{
log
.
error
(
e
.
getMessage
());
log
.
error
(
"库位:"
+
noReelPosName
+
"出库出错"
,
e
.
getMessage
());
break
;
}
...
...
src/main/java/com/neotel/smfcore/core/system/util/TaskService.java
查看文件 @
114428f
...
...
@@ -5,10 +5,7 @@ import com.google.common.base.Strings;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Maps
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.utils.Constants
;
import
com.neotel.smfcore.common.utils.ReelLockPosUtil
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.common.utils.StorageConstants
;
import
com.neotel.smfcore.common.utils.*
;
import
com.neotel.smfcore.core.barcode.enums.COMPONENT_TYPE
;
import
com.neotel.smfcore.core.barcode.service.manager.IBarcodeManager
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
...
...
@@ -333,8 +330,10 @@ public class TaskService {
*/
public
DataLog
findExecutingTask
(
String
cid
,
String
posName
)
{
for
(
DataLog
task
:
taskMap
.
values
())
{
if
(
task
.
getCid
().
equals
(
cid
)
&&
task
.
getPosName
().
equals
(
posName
))
{
return
task
;
if
(
StringUtils
.
isNotBlank
(
task
.
getPosName
())){
if
(
task
.
getCid
().
equals
(
cid
)
&&
task
.
getPosName
().
equals
(
posName
))
{
return
task
;
}
}
}
return
null
;
...
...
src/main/java/com/neotel/smfcore/hikvision_mobile/HikVisionController.java
查看文件 @
114428f
...
...
@@ -516,6 +516,7 @@ public class HikVisionController {
if
(
deviceData
!=
null
&&
deviceData
.
size
()
==
2
)
{
List
<
String
>
hasReelPosErrorList
=
deviceData
.
get
(
0
);
if
(
hasReelPosErrorList
!=
null
&&
!
hasReelPosErrorList
.
isEmpty
())
{
log
.
info
(
"hasReelPosErrorList-----"
+
JSON
.
toJSONString
(
hasReelPosErrorList
));
Query
query
=
new
Query
(
Criteria
.
where
(
"posName"
).
in
(
hasReelPosErrorList
.
toArray
()));
List
<
StoragePos
>
posList
=
storagePosManager
.
findByQuery
(
query
);
for
(
StoragePos
pos
:
posList
)
{
...
...
@@ -531,7 +532,7 @@ public class HikVisionController {
return
true
;
}
}
else
{
log
.
info
(
pos
Name
+
"对应的货架位异常"
);
log
.
info
(
pos
.
getPosName
()
+
"对应的货架位异常"
);
return
true
;
}
}
...
...
@@ -539,7 +540,8 @@ public class HikVisionController {
List
<
String
>
noReelPosErrorList
=
deviceData
.
get
(
1
);
if
(
noReelPosErrorList
!=
null
&&
!
noReelPosErrorList
.
isEmpty
())
{
Query
query
=
new
Query
(
Criteria
.
where
(
"posName"
).
in
(
hasReelPosErrorList
.
toArray
()));
log
.
info
(
"noReelPosErrorList-----"
+
JSON
.
toJSONString
(
noReelPosErrorList
));
Query
query
=
new
Query
(
Criteria
.
where
(
"posName"
).
in
(
noReelPosErrorList
.
toArray
()));
List
<
StoragePos
>
posList
=
storagePosManager
.
findByQuery
(
query
);
for
(
StoragePos
pos
:
posList
)
{
if
(!
pos
.
isEnabled
())
{
...
...
@@ -554,7 +556,7 @@ public class HikVisionController {
return
true
;
}
}
else
{
log
.
info
(
pos
Name
+
"对应的货架位异常"
);
log
.
info
(
pos
.
getPosName
()
+
"对应的货架位异常"
);
return
true
;
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论