Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit 8f9b2970
由
LN
编写于
2026-04-15 20:08:58 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
1695SP移库完成增加日志
1 个父辈
5cbae4a0
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
1 行删除
src/main/java/com/neotel/smfcore/core/device/rest/SpDeviceController.java
src/main/java/com/neotel/smfcore/custom/sp/SpApi.java
src/main/java/com/neotel/smfcore/core/device/rest/SpDeviceController.java
查看文件 @
8f9b297
...
...
@@ -79,6 +79,12 @@ public class SpDeviceController {
if
(
ObjectUtil
.
isEmpty
(
cid
)
||
ObjectUtil
.
isEmpty
(
posName
))
{
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.reelPosMove.paramerror"
,
"参数不完整"
);
}
if
(
posName
.
equals
((
targetPosName
))){
log
.
info
(
"SPreelPosMove ,cid="
+
cid
+
",barcode="
+
barcode
+
",posName="
+
posName
+
",targetPosName="
+
targetPosName
+
",原库位与目标库位一样,直接返回成功"
);
return
ResultBean
.
newOkResult
(
"OK"
);
}
Storage
storage
=
dataCache
.
getStorage
(
cid
);
if
(
storage
==
null
)
{
return
ResultBean
.
newErrorResult
(-
1
,
"smfcore.valueNotExist"
,
"{0}[{1}]不存在"
,
new
String
[]{
"Storage"
,
cid
});
...
...
@@ -105,8 +111,13 @@ public class SpDeviceController {
}
Barcode
posBarcode
=
pos
.
getBarcode
();
taskService
.
addTaskToFinished
(
pos
,
pos
.
getBarcode
(),
"SpClient"
);
try
{
taskService
.
addTaskToFinished
(
pos
,
pos
.
getBarcode
(),
"SpClient"
);
}
catch
(
Exception
ex
){
log
.
info
(
"SPreelPosMove ,cid="
+
cid
+
",barcode="
+
barcode
+
",posName="
+
posName
+
",targetPosName="
+
targetPosName
+
",清空原库位异常:"
+
ex
.
toString
());
}
taskService
.
addTaskToFinished
(
targetPos
,
posBarcode
,
"SpClient"
);
log
.
info
(
"SPreelPosMove ,cid="
+
cid
+
",barcode="
+
barcode
+
",posName="
+
posName
+
",targetPosName="
+
targetPosName
+
"成功"
);
return
ResultBean
.
newOkResult
(
"OK"
);
}
}
src/main/java/com/neotel/smfcore/custom/sp/SpApi.java
查看文件 @
8f9b297
...
...
@@ -156,6 +156,10 @@ public class SpApi extends BaseSmfApiListener {
@Override
public
void
inTaskStatusChange
(
String
inNotifyUrl
,
DataLog
task
){
if
(
task
.
isFinished
()){
if
(
ObjectUtil
.
isNotEmpty
(
task
.
getOperator
())&&
task
.
getOperator
().
equals
(
"SpClient"
)){
log
.
info
(
task
.
getBarcode
()
+
"入库完成,posName="
+
task
.
getPosName
()+
",operator=SpClient,不需要接口通知 "
);
return
;
}
sendInNotify
(
inNotifyUrl
,
task
);
}
}
...
...
@@ -184,6 +188,11 @@ public class SpApi extends BaseSmfApiListener {
public
void
outTaskStatusChange
(
String
outNotifyUrl
,
DataLog
task
)
{
if
(
task
.
isFinished
())
{
if
(
ObjectUtil
.
isNotEmpty
(
task
.
getOperator
())&&
task
.
getOperator
().
equals
(
"SpClient"
)){
log
.
info
(
task
.
getBarcode
()
+
"出库完成,posName="
+
task
.
getPosName
()+
",operator=SpClient,不需要接口通知 "
);
return
;
}
Map
<
String
,
Object
>
paramMap
=
new
HashMap
<>();
paramMap
.
put
(
"reelId"
,
task
.
getBarcode
());
paramMap
.
put
(
"partNum"
,
task
.
getPartNumber
());
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论