Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
smf-core
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit c7b4efd6
由
zshaohui
编写于
2022-08-18 09:10:10 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
研华单盘入库修改
1 个父辈
a3265e84
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
15 行增加
和
3 行删除
src/main/java/com/neotel/smfcore/core/device/bean/StatusBean.java
src/main/java/com/neotel/smfcore/core/device/handler/impl/MimoBoxHandler.java
src/main/java/com/neotel/smfcore/custom/advantech/AdvantechApi.java
src/main/java/com/neotel/smfcore/core/device/bean/StatusBean.java
查看文件 @
c7b4efd
...
@@ -240,6 +240,14 @@ public class StatusBean {
...
@@ -240,6 +240,14 @@ public class StatusBean {
this
.
alarmList
=
alarmList
;
this
.
alarmList
=
alarmList
;
}
}
public
void
putOp
(
Map
<
String
,
String
>
opMap
)
{
if
(
opMap
!=
null
&&
!
opMap
.
isEmpty
())
{
for
(
Map
.
Entry
<
String
,
String
>
op
:
opMap
.
entrySet
())
{
data
.
put
(
op
.
getKey
(),
op
.
getValue
());
}
}
}
/**
/**
* 添加一些服务器的操作发送到客户端(批量入库)
* 添加一些服务器的操作发送到客户端(批量入库)
* @param opMap
* @param opMap
...
...
src/main/java/com/neotel/smfcore/core/device/handler/impl/MimoBoxHandler.java
查看文件 @
c7b4efd
package
com
.
neotel
.
smfcore
.
core
.
device
.
handler
.
impl
;
package
com
.
neotel
.
smfcore
.
core
.
device
.
handler
.
impl
;
import
cn.hutool.core.util.ObjectUtil
;
import
cn.hutool.core.util.ObjectUtil
;
import
com.alibaba.fastjson.JSON
;
import
com.google.common.base.Strings
;
import
com.google.common.base.Strings
;
import
com.google.common.collect.Lists
;
import
com.google.common.collect.Lists
;
import
com.neotel.smfcore.common.bean.ResultBean
;
import
com.neotel.smfcore.common.bean.ResultBean
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.exception.ValidateException
;
import
com.neotel.smfcore.common.utils.Constants
;
import
com.neotel.smfcore.common.utils.Constants
;
import
com.neotel.smfcore.common.utils.JsonUtil
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.common.utils.SecurityUtils
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.barcode.service.po.Barcode
;
import
com.neotel.smfcore.core.device.bean.StatusBean
;
import
com.neotel.smfcore.core.device.bean.StatusBean
;
...
@@ -74,8 +76,7 @@ public class MimoBoxHandler extends BaseDeviceHandler {
...
@@ -74,8 +76,7 @@ public class MimoBoxHandler extends BaseDeviceHandler {
//获取操作
//获取操作
Map
<
String
,
String
>
opMap
=
DevicesStatusUtil
.
getAndRemoveOp
(
cid
);
Map
<
String
,
String
>
opMap
=
DevicesStatusUtil
.
getAndRemoveOp
(
cid
);
statusBean
.
addOp
(
opMap
);
statusBean
.
putOp
(
opMap
);
return
statusBean
;
return
statusBean
;
}
}
...
...
src/main/java/com/neotel/smfcore/custom/advantech/AdvantechApi.java
查看文件 @
c7b4efd
...
@@ -13,6 +13,7 @@ import com.neotel.smfcore.core.system.service.po.DataLog;
...
@@ -13,6 +13,7 @@ import com.neotel.smfcore.core.system.service.po.DataLog;
import
com.neotel.smfcore.core.system.util.TaskService
;
import
com.neotel.smfcore.core.system.util.TaskService
;
import
com.sun.org.apache.xpath.internal.operations.Bool
;
import
com.sun.org.apache.xpath.internal.operations.Bool
;
import
lombok.extern.slf4j.Slf4j
;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.stereotype.Service
;
...
@@ -230,7 +231,9 @@ public class AdvantechApi extends BaseSmfApiListener {
...
@@ -230,7 +231,9 @@ public class AdvantechApi extends BaseSmfApiListener {
taskService
.
cancelTask
(
task
.
getId
());
taskService
.
cancelTask
(
task
.
getId
());
}
else
{
}
else
{
//如果返回成功,把singleOut改为true
//如果返回成功,把singleOut改为true
task
.
setSingleOut
(
true
);
if
(
ObjectUtils
.
isNotEmpty
(
task
.
getSourceName
()))
{
task
.
setSingleOut
(
true
);
}
taskService
.
updateQueueTask
(
task
);
taskService
.
updateQueueTask
(
task
);
}
}
log
.
info
(
task
.
getBarcode
()
+
"出库通知返回"
+
result
);
log
.
info
(
task
.
getBarcode
()
+
"出库通知返回"
+
result
);
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论