Skip to content
切换导航条
切换导航条
当前项目
正在载入...
登录
孙克
/
RC1250-ACPackingStore
转到一个项目
切换导航栏
切换导航栏固定状态
项目
群组
代码片段
帮助
项目
活动
版本库
流水线
图表
问题
0
合并请求
0
维基
网络
创建新的问题
作业
提交
问题看板
文件
提交
网络
比较
分支
标签
Commit e780b65a
由
张东亮
编写于
2024-03-19 13:39:18 +0800
浏览文件
选项
浏览文件
标签
下载
电子邮件补丁
差异文件
出入库完成重发机制
1 个父辈
aabdd124
显示空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
27 行增加
和
10 行删除
source/DeviceLibrary/PackingStore/AC_BOX_Bean_server_connect.cs
source/DeviceLibrary/PackingStore/AC_BOX_Bean_server_connect.cs
查看文件 @
e780b65
...
...
@@ -7,6 +7,7 @@ using System.Collections.Concurrent;
using
System.Collections.Generic
;
using
System.Diagnostics
;
using
System.Linq
;
using
System.Security.Cryptography
;
using
System.Text
;
using
System.Threading
;
using
System.Threading.Tasks
;
...
...
@@ -145,24 +146,40 @@ namespace OnlineStore.DeviceLibrary
Operation
resultOperation
=
HttpHelper
.
PostJson
(
StoreManager
.
GetPostApi
(
server
),
lineOperation
,
false
);
//发送状态信息到服务器
if
(
resultOperation
==
null
||
(
resultOperation
.
op
<=
0
))
if
(
resultOperation
==
null
)
return
;
if
(
resultOperation
.
op
<=
0
)
{
//判断服务端是否返回出库操作
try
{
if
(
lineOperation
.
boxStatus
.
ContainsKey
(
1
))
if
(
lineOperation
.
boxStatus
.
ContainsKey
(
1
)&&
resultOperation
.
boxStatus
.
ContainsKey
(
1
))
{
BoxStatus
sendboxStatus
=
lineOperation
.
boxStatus
[
1
];
BoxStatus
recvboxStatus
=
resultOperation
.
boxStatus
[
1
];
if
(
sendboxStatus
.
data
.
ContainsKey
(
ParamDefine
.
posId
))
{
if
(
sendboxStatus
.
status
.
Equals
((
int
)
StoreStatus
.
InStoreEnd
)
||
sendboxStatus
.
status
.
Equals
((
int
)
StoreStatus
.
OutStoreBoxEnd
))
{
BoxStatus
boxStatus
=
lineOperation
.
boxStatus
[
1
];
if
(
boxStatus
.
data
.
ContainsKey
(
ParamDefine
.
posId
))
string
pos1
=
sendboxStatus
.
data
[
ParamDefine
.
posId
];
if
(
recv
boxStatus
.
data
.
ContainsKey
(
ParamDefine
.
posId
))
{
string
posid
=
boxStatus
.
data
[
ParamDefine
.
posId
];
if
(
boxStatus
.
status
.
Equals
((
int
)
StoreStatus
.
InStoreEnd
)
||
boxStatus
.
status
.
Equals
((
int
)
StoreStatus
.
OutStoreBoxEnd
)
)
string
pos2
=
recv
boxStatus
.
data
[
ParamDefine
.
posId
];
if
(
pos1
.
Equals
(
pos2
)&&
sendboxStatus
.
status
==
recvboxStatus
.
status
)
{
waitSendPosIds
.
Enqueue
(
new
posStatus
()
{
PosId
=
posid
,
StoreStatus
=
(
StoreStatus
)
boxStatus
.
status
});
LogUtil
.
error
(
$
"{posid}发送[{boxStatus.status}]失败,存入待发送列表"
);
}
else
{
waitSendPosIds
.
Enqueue
(
new
posStatus
()
{
PosId
=
pos1
,
StoreStatus
=
(
StoreStatus
)
sendboxStatus
.
status
});
LogUtil
.
error
(
$
"{pos1}发送[{sendboxStatus.status}]失败1,存入待发送列表"
);
}
}
else
{
waitSendPosIds
.
Enqueue
(
new
posStatus
()
{
PosId
=
pos1
,
StoreStatus
=
(
StoreStatus
)
sendboxStatus
.
status
});
LogUtil
.
error
(
$
"{pos1}发送[{sendboxStatus.status}]失败2,存入待发送列表"
);
}
}
}
}
}
...
...
编写
预览
支持
Markdown
格式
附加文件
你添加了
0
人
到此讨论。请谨慎行事。
Finish editing this message first!
Cancel
请
注册
或
登录
后发表评论