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
55f78cab
Commit
55f78cab
authored
Apr 06, 2023
by
zxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
统计报表新增单警柜信息统计
parent
e07e7f17
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
33 行增加
和
10 行删除
+33
-10
InventoryController.cs
JunmpPoliceStation/Controllers/InventoryController.cs
+4
-4
TjController.cs
JunmpPoliceStation/Controllers/TjController.cs
+29
-6
没有找到文件。
JunmpPoliceStation/Controllers/InventoryController.cs
View file @
55f78cab
...
...
@@ -8394,8 +8394,8 @@ namespace JunmpPoliceStation.Controllers
var
data
=
equipmentList
.
GroupBy
(
t
=>
new
{
t
.
OrgId
,
t
.
WarehouseCode
,
t
.
EquipmentSizecode
}).
Select
(
c
=>
new
{
c
.
FirstOrDefault
().
OrgId
,
WarehouseCode
=
c
.
FirstOrDefault
(
x
=>
x
.
WarehouseCode
!=
null
)?.
WarehouseCode
??
"00000000-0000-0000-0000-000000000000"
,
WarehouseName
=
c
.
FirstOrDefault
(
x
=>
x
.
WarehouseCode
!=
null
)?.
WarehouseName
??
""
,
WarehouseCode
=
c
.
FirstOrDefault
(
x
=>
x
.
WarehouseCode
!=
null
)?.
WarehouseCode
??
"00000000-0000-0000-0000-000000000000"
,
WarehouseName
=
c
.
FirstOrDefault
(
x
=>
x
.
WarehouseCode
!=
null
)?.
WarehouseName
??
""
,
c
.
FirstOrDefault
().
EquipmentCode
,
c
.
FirstOrDefault
().
EquipmentName
,
c
.
FirstOrDefault
().
EquipmentSizecode
,
...
...
@@ -8484,7 +8484,7 @@ namespace JunmpPoliceStation.Controllers
"WarehouseCodeNavigation.Orgization"
};
Expression
<
Func
<
CommonJpEquipmentInventory
,
bool
>>
expression
=
t
=>
OrgId
.
Equals
(
t
.
WarehouseCodeNavigation
.
Orgization
Id
);
Expression
<
Func
<
CommonJpEquipmentInventory
,
bool
>>
expression
=
t
=>
OrgId
.
Equals
(
t
.
Org
Id
);
expression
=
LambdaExtensions
.
AndAlso
(
expression
,
t
=>
t
.
InventoryState
!=
"loss"
);
//orgList.Add(orgInfo.Id);//查询所有组织机构仓库库存信息
...
...
@@ -8536,7 +8536,7 @@ namespace JunmpPoliceStation.Controllers
id
=
x
.
Key
.
WarehouseCode
+
x
.
Key
.
EquipmentSizecode
,
warehouseName
=
x
.
FirstOrDefault
().
WarehouseCodeNavigation
?.
Name
,
equipmentName
=
x
.
FirstOrDefault
().
EquipmentCodeNavigation
?.
Name
,
warehouseId
=
x
.
FirstOrDefault
().
WarehouseCodeNavigation
?.
Id
,
warehouseId
=
x
.
FirstOrDefault
().
WarehouseCodeNavigation
?.
Id
??
"00000000-0000-0000-0000-000000000000"
,
equipmentSizeName
=
x
.
FirstOrDefault
().
EquipmentSizecodeNavigation
?.
SizeName
,
equipmentSizeId
=
x
.
FirstOrDefault
().
EquipmentSizecodeNavigation
?.
Id
,
sumCount
=
x
.
Count
(),
...
...
JunmpPoliceStation/Controllers/TjController.cs
View file @
55f78cab
...
...
@@ -633,8 +633,7 @@ namespace JunmpPoliceStation.Controllers
string
equipmentSizecode
=
entity
.
equipmentSizecode
;
var
idList
=
OrgTreeModel
.
GetOrgIdList
(
orgModelList
,
org
.
Id
);
//expressionPoliceman = t => idList.Contains(t.OrgId);
expressionPoliceman
=
t
=>
t
.
OrgId
==
org
.
Id
;
expressionPoliceman
=
t
=>
idList
.
Contains
(
t
.
OrgId
);
if
(!
String
.
IsNullOrEmpty
(
typeId
))
{
...
...
@@ -664,6 +663,10 @@ namespace JunmpPoliceStation.Controllers
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
djgCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
3
),
djgckCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
7
),
priceCount
=
c
.
Where
(
f
=>
!
f
.
CurrentState
.
Equals
(
6
)
&&
f
.
Price
!=
null
).
Sum
(
k
=>
k
.
Price
),
children
=
c
.
OrderBy
(
z
=>
z
.
TypeOneId
).
ThenBy
(
z
=>
z
.
TypeTwoId
).
ThenBy
(
z
=>
z
.
TypeThreeId
).
GroupBy
(
a
=>
a
.
EquipmentCode
).
Select
(
c
=>
new
{
...
...
@@ -673,11 +676,15 @@ namespace JunmpPoliceStation.Controllers
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
djgCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
3
),
djgckCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
7
),
priceCount
=
c
.
Where
(
f
=>
!
f
.
CurrentState
.
Equals
(
6
)
&&
f
.
Price
!=
null
).
Sum
(
k
=>
k
.
Price
)
}).
Where
(
f
=>
f
.
id
!=
null
&&
f
.
zsCount
!=
0
).
ToList
()
}).
Where
(
f
=>
f
.
id
!=
null
&&
(
f
.
zsCount
!=
0
||
f
.
bfCount
!=
0
)
).
ToList
()
}).
ToList
();
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
)
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
||
c
.
bfCount
!=
0
)
.
OrderBy
(
c
=>
c
.
FindCode
.
Length
)
.
ThenBy
(
c
=>
c
.
FindCode
)
.
ThenBy
(
c
=>
c
.
OrgCode
)
...
...
@@ -690,6 +697,10 @@ namespace JunmpPoliceStation.Controllers
zkCount
=
data
.
Sum
(
c
=>
c
.
zkCount
),
ckCount
=
data
.
Sum
(
c
=>
c
.
ckCount
),
bfCount
=
data
.
Sum
(
c
=>
c
.
bfCount
),
djgCount
=
data
.
Sum
(
c
=>
c
.
djgCount
),
djgckCount
=
data
.
Sum
(
c
=>
c
.
djgckCount
),
priceCount
=
data
.
Sum
(
c
=>
c
.
priceCount
),
content
=
data
.
Skip
(
page
*
size
).
Take
(
size
)
};
...
...
@@ -707,6 +718,10 @@ namespace JunmpPoliceStation.Controllers
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
djgCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
3
),
djgckCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
7
),
priceCount
=
c
.
Where
(
f
=>
!
f
.
CurrentState
.
Equals
(
6
)
&&
f
.
Price
!=
null
).
Sum
(
k
=>
k
.
Price
),
children
=
c
.
OrderBy
(
z
=>
z
.
TypeOneId
).
ThenBy
(
z
=>
z
.
TypeTwoId
).
ThenBy
(
z
=>
z
.
TypeThreeId
).
GroupBy
(
a
=>
a
.
EquipmentCode
).
Select
(
c
=>
new
{
...
...
@@ -716,11 +731,15 @@ namespace JunmpPoliceStation.Controllers
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
3
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
bfCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
6
)).
Count
(),
djgCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
3
),
djgckCount
=
c
.
Count
(
x
=>
x
.
CurrentState
==
7
),
priceCount
=
c
.
Where
(
f
=>
!
f
.
CurrentState
.
Equals
(
6
)
&&
f
.
Price
!=
null
).
Sum
(
k
=>
k
.
Price
)
}).
Where
(
f
=>
f
.
id
!=
null
&&
f
.
zsCount
!=
0
).
ToList
()
}).
Where
(
f
=>
f
.
id
!=
null
&&
(
f
.
zsCount
!=
0
||
f
.
bfCount
!=
0
)
).
ToList
()
}).
ToList
();
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
)
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
||
c
.
bfCount
!=
0
)
.
OrderBy
(
c
=>
c
.
FindCode
.
Length
)
.
ThenBy
(
c
=>
c
.
FindCode
)
.
ThenBy
(
c
=>
c
.
OrgCode
)
...
...
@@ -733,6 +752,10 @@ namespace JunmpPoliceStation.Controllers
zkCount
=
data
.
Sum
(
c
=>
c
.
zkCount
),
ckCount
=
data
.
Sum
(
c
=>
c
.
ckCount
),
bfCount
=
data
.
Sum
(
c
=>
c
.
bfCount
),
djgCount
=
data
.
Sum
(
c
=>
c
.
djgCount
),
djgckCount
=
data
.
Sum
(
c
=>
c
.
djgckCount
),
priceCount
=
data
.
Sum
(
c
=>
c
.
priceCount
),
content
=
data
.
Skip
(
page
*
size
).
Take
(
size
)
};
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论