Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
JunmpPoliceStation
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
zxw
JunmpPoliceStation
Commits
baf03e11
Commit
baf03e11
authored
Dec 22, 2022
by
zxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
663e2ed5
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
26 行增加
和
12 行删除
+26
-12
InventoryController.cs
JunmpPoliceStation/Controllers/InventoryController.cs
+10
-1
ShelfController.cs
JunmpPoliceStation/Controllers/ShelfController.cs
+15
-9
ChannelExtension.cs
JunmpPoliceStation/Extensions/ChannelExtension.cs
+0
-0
JunmpPoliceStation.csproj
JunmpPoliceStation/JunmpPoliceStation.csproj
+0
-1
Program.cs
JunmpPoliceStation/Program.cs
+1
-1
没有找到文件。
JunmpPoliceStation/Controllers/InventoryController.cs
View file @
baf03e11
...
@@ -7459,6 +7459,15 @@ namespace JunmpPoliceStation.Controllers
...
@@ -7459,6 +7459,15 @@ namespace JunmpPoliceStation.Controllers
_unitOfWork
.
EquipmentInventoryRepository
.
Update
(
UpdateEpc
);
_unitOfWork
.
EquipmentInventoryRepository
.
Update
(
UpdateEpc
);
}
}
if
(
currentState
.
Equals
(
"0"
)
&&
UpdateEpc
.
Count
>
0
)
//出库+物资更新
{
//更新redis上货架相关数据
if
(!
ChannelExtension
.
UpdateOpenOrderInvInfo
(
_unitOfWork
,
warehouseId
,
""
,
""
,
out
string
msg
))
{
_logger
.
LogError
(
"更新redis上货架相关数据失败:"
+
msg
);
}
}
//计算阈值
//计算阈值
var
sizeList
=
InsertEpc
.
Select
(
x
=>
x
.
EquipmentSizecode
).
ToList
();
var
sizeList
=
InsertEpc
.
Select
(
x
=>
x
.
EquipmentSizecode
).
ToList
();
sizeList
.
AddRange
(
UpdateEpc
.
Select
(
x
=>
x
.
EquipmentSizecode
).
ToList
());
sizeList
.
AddRange
(
UpdateEpc
.
Select
(
x
=>
x
.
EquipmentSizecode
).
ToList
());
...
@@ -9344,7 +9353,7 @@ namespace JunmpPoliceStation.Controllers
...
@@ -9344,7 +9353,7 @@ namespace JunmpPoliceStation.Controllers
}
}
var
EquipmentList
=
_unitOfWork
.
EquipmentInventoryRepository
.
GetList
(
expression
,
c
=>
c
.
CreateTime
,
false
,
param
)
var
EquipmentList
=
_unitOfWork
.
EquipmentInventoryRepository
.
GetList
(
expression
,
c
=>
c
.
CreateTime
,
false
,
param
)
.
OrderBy
(
x
=>
x
.
EquipmentCodeNavigation
.
Code
)
.
OrderBy
(
x
=>
x
.
EquipmentCodeNavigation
.
Code
)
.
ToList
();
.
ToList
();
var
datas
=
EquipmentList
.
Select
(
equipment
=>
new
var
datas
=
EquipmentList
.
Select
(
equipment
=>
new
...
...
JunmpPoliceStation/Controllers/ShelfController.cs
View file @
baf03e11
...
@@ -183,6 +183,10 @@ namespace JunmpPoliceStation.Controllers
...
@@ -183,6 +183,10 @@ namespace JunmpPoliceStation.Controllers
"CommonJpEquipmentInventories.EquipmentCodeNavigation.Equipment"
,
"CommonJpEquipmentInventories.EquipmentCodeNavigation.Equipment"
,
};
};
var
allEquList
=
_unitOfWork
.
EquipmentInventoryRepository
.
GetList
(
z
=>
z
.
ShelfRow
!=
null
&&
z
.
CurrentState
!=
6
&&
z
.
InventoryState
!=
"loss"
)
.
ToList
();
var
dataList
=
_unitOfWork
.
BaseJpShelfInfoRepository
var
dataList
=
_unitOfWork
.
BaseJpShelfInfoRepository
.
GetList
(
expression
,
x
=>
x
.
Url
,
false
,
param
)
.
GetList
(
expression
,
x
=>
x
.
Url
,
false
,
param
)
.
Select
(
x
=>
new
.
Select
(
x
=>
new
...
@@ -212,15 +216,9 @@ namespace JunmpPoliceStation.Controllers
...
@@ -212,15 +216,9 @@ namespace JunmpPoliceStation.Controllers
Name
=
x
.
FirstOrDefault
().
EquipmentCodeNavigation
.
Name
,
Name
=
x
.
FirstOrDefault
().
EquipmentCodeNavigation
.
Name
,
Count
=
x
.
Count
(),
Count
=
x
.
Count
(),
row
=
string
.
Join
(
','
,
row
=
string
.
Join
(
','
,
_unitOfWork
.
EquipmentInventoryRepository
allEquList
.
Where
(
z
=>
z
.
EquipmentCode
==
x
.
Key
&&
z
.
ShelfId
==
c
.
Id
)
.
GetList
(
z
=>
z
.
EquipmentCode
==
x
.
Key
&&
z
.
ShelfId
==
c
.
Id
&&
z
.
ShelfRow
!=
null
&&
z
.
CurrentState
!=
6
&&
z
.
InventoryState
!=
"loss"
)
.
GroupBy
(
z
=>
z
.
ShelfRow
)
.
GroupBy
(
z
=>
z
.
ShelfRow
)
.
Select
(
z
=>
z
.
Key
)
.
Select
(
z
=>
z
.
Key
)
)
)
})
})
.
OrderBy
(
x
=>
x
.
Name
)
.
OrderBy
(
x
=>
x
.
Name
)
...
@@ -296,7 +294,10 @@ namespace JunmpPoliceStation.Controllers
...
@@ -296,7 +294,10 @@ namespace JunmpPoliceStation.Controllers
{
{
if
(!
string
.
IsNullOrEmpty
(
pushClientId
))
if
(!
string
.
IsNullOrEmpty
(
pushClientId
))
{
{
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
$"/C|ResponseShelfGetOrder|
{{}}
"
);
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
@
$"/C|ResponseShelfGetOrder|
{
JsonConvert
.
SerializeObject
(
new
{
warehouseId
=
warehouseId
,
})}
"
);
}
}
return
JsonManager
.
SimpleCustResponse
(
"无开启单据"
,
"10000"
);
return
JsonManager
.
SimpleCustResponse
(
"无开启单据"
,
"10000"
);
}
}
...
@@ -390,6 +391,7 @@ namespace JunmpPoliceStation.Controllers
...
@@ -390,6 +391,7 @@ namespace JunmpPoliceStation.Controllers
{
{
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
$@"/C|ResponseShelfGetOrder|
{
JsonConvert
.
SerializeObject
(
new
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
$@"/C|ResponseShelfGetOrder|
{
JsonConvert
.
SerializeObject
(
new
{
{
warehouseId
=
data
.
warehouseId
,
orderCode
=
data
.
OrderCode
,
orderCode
=
data
.
OrderCode
,
data
=
list
data
=
list
})}
"
);
})}
"
);
...
@@ -522,6 +524,7 @@ namespace JunmpPoliceStation.Controllers
...
@@ -522,6 +524,7 @@ namespace JunmpPoliceStation.Controllers
{
{
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
$@"/C|ResponseShelfGetOrder|
{
JsonConvert
.
SerializeObject
(
new
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
$@"/C|ResponseShelfGetOrder|
{
JsonConvert
.
SerializeObject
(
new
{
{
warehouseId
=
data
.
warehouseId
,
orderCode
=
data
.
order
,
orderCode
=
data
.
order
,
data
=
list
data
=
list
})}
"
);
})}
"
);
...
@@ -532,7 +535,10 @@ namespace JunmpPoliceStation.Controllers
...
@@ -532,7 +535,10 @@ namespace JunmpPoliceStation.Controllers
{
{
if
(!
string
.
IsNullOrEmpty
(
pushClientId
))
if
(!
string
.
IsNullOrEmpty
(
pushClientId
))
{
{
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
$"/C|ResponseShelfGetOrder|
{{}}
"
);
mqttServer
.
ServerPublishMqttTopic
(
pushClientId
,
@
$"/C|ResponseShelfGetOrder|
{
JsonConvert
.
SerializeObject
(
new
{
warehouseId
=
warehouseId
,
})}
"
);
}
}
return
JsonManager
.
SimpleCustResponse
(
"异常OrderType"
);
return
JsonManager
.
SimpleCustResponse
(
"异常OrderType"
);
}
}
...
...
JunmpPoliceStation/Extensions/ChannelExtension.cs
View file @
baf03e11
差异被折叠。
点击展开。
JunmpPoliceStation/JunmpPoliceStation.csproj
View file @
baf03e11
...
@@ -116,7 +116,6 @@
...
@@ -116,7 +116,6 @@
<ItemGroup>
<ItemGroup>
<ProjectReference Include="..\JmpCommon\JmpCommon.csproj" />
<ProjectReference Include="..\JmpCommon\JmpCommon.csproj" />
<ProjectReference Include="..\JmpModel\JmpModel.csproj" />
<ProjectReference Include="..\JmpModel\JmpModel.csproj" />
<ProjectReference Include="..\JmpMsgService\JmpMsgService.csproj" />
</ItemGroup>
</ItemGroup>
<ProjectExtensions><VisualStudio><UserProperties properties_4launchsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
<ProjectExtensions><VisualStudio><UserProperties properties_4launchsettings_1json__JsonSchema="" /></VisualStudio></ProjectExtensions>
...
...
JunmpPoliceStation/Program.cs
View file @
baf03e11
...
@@ -35,7 +35,7 @@ namespace JunmpPoliceStation
...
@@ -35,7 +35,7 @@ namespace JunmpPoliceStation
#if DEBUG
#if DEBUG
CreateWebHostBuilder
(
args
).
Build
().
Run
();
CreateWebHostBuilder
(
args
).
Build
().
Run
();
#else
#else
CreateWebHostBuilder
(
args
).
Build
().
Run
AsService
();
CreateWebHostBuilder
(
args
).
Build
().
Run
();
#endif
#endif
}
}
catch
(
Exception
ex
)
catch
(
Exception
ex
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论