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
7b1ffc81
Commit
7b1ffc81
authored
May 06, 2023
by
zxw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
0506
parent
96a67afe
全部展开
显示空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
25 行增加
和
10 行删除
+25
-10
JunmppolicesqlContext.cs
JmpModel/Model/DataContext/JunmppolicesqlContext.cs
+3
-2
ViewEquipmentType.cs
JmpModel/Model/ViewEquipmentType.cs
+3
-0
EquipmentSizeController.cs
JunmpPoliceStation/Controllers/EquipmentSizeController.cs
+1
-1
InventoryController.cs
JunmpPoliceStation/Controllers/InventoryController.cs
+0
-0
PolicemanController.cs
JunmpPoliceStation/Controllers/PolicemanController.cs
+0
-0
TjController.cs
JunmpPoliceStation/Controllers/TjController.cs
+11
-5
ViewController.cs
JunmpPoliceStation/Controllers/ViewController.cs
+7
-2
没有找到文件。
JmpModel/Model/DataContext/JunmppolicesqlContext.cs
View file @
7b1ffc81
...
...
@@ -1706,6 +1706,7 @@ Smart:智能货架
entity
.
HasOne
(
d
=>
d
.
TrueWarehouse
)
.
WithMany
(
p
=>
p
.
CommonJpEquipmentFailWarehouseStateTrueWarehouses
)
.
HasForeignKey
(
d
=>
d
.
TrueWarehouseId
)
.
OnDelete
(
DeleteBehavior
.
Cascade
)
.
HasConstraintName
(
"FK__common_jp__trueW__438BFA74"
);
});
...
...
@@ -2564,7 +2565,6 @@ Warehouse:仓库");
entity
.
HasOne
(
d
=>
d
.
Warehouse
)
.
WithMany
(
p
=>
p
.
CommonJpInventoryTables
)
.
HasForeignKey
(
d
=>
d
.
WarehouseId
)
.
OnDelete
(
DeleteBehavior
.
ClientSetNull
)
.
HasConstraintName
(
"FK_common_jp_inventory_table_base_jp_warehouse"
);
});
...
...
@@ -2768,7 +2768,6 @@ Warehouse:仓库");
entity
.
HasOne
(
d
=>
d
.
ApplyPolice
)
.
WithMany
(
p
=>
p
.
CommonJpPoliceShiftJobsApplies
)
.
HasForeignKey
(
d
=>
d
.
ApplyPoliceId
)
.
OnDelete
(
DeleteBehavior
.
SetNull
)
.
HasConstraintName
(
"FK__common_jp__apply__569ECEE8"
);
entity
.
HasOne
(
d
=>
d
.
ProcessCurrent
)
...
...
@@ -3712,6 +3711,8 @@ Warehouse:仓库");
entity
.
ToView
(
"view_equipment_type"
);
entity
.
Property
(
e
=>
e
.
EquCode
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
EquipmentCode
).
IsUnicode
(
false
);
entity
.
Property
(
e
=>
e
.
EquipmentName
).
IsUnicode
(
false
);
...
...
JmpModel/Model/ViewEquipmentType.cs
View file @
7b1ffc81
...
...
@@ -17,6 +17,9 @@ namespace JmpModel.Model
[
Column
(
"equipment_code"
)]
[
StringLength
(
36
)]
public
string
EquipmentCode
{
get
;
set
;
}
[
Column
(
"equ_code"
)]
[
StringLength
(
36
)]
public
string
EquCode
{
get
;
set
;
}
[
Column
(
"equipment_name"
)]
[
StringLength
(
64
)]
public
string
EquipmentName
{
get
;
set
;
}
...
...
JunmpPoliceStation/Controllers/EquipmentSizeController.cs
View file @
7b1ffc81
...
...
@@ -74,7 +74,7 @@ namespace JunmpPoliceStation.Controllers
List
<
BaseJpEquipmentSize
>
dataList
=
_unitOfWork
.
EquipmentSizeRepository
.
GetList
(
expression
,
t
=>
t
.
UpdateTime
,
false
,
param
).
ToList
();
var
i
=
0
;
var
data
=
dataList
.
Select
(
c
=>
new
var
data
=
dataList
.
OrderBy
(
c
=>
c
.
SizeName
).
Select
(
c
=>
new
{
c
.
Id
,
c
.
SizeName
,
...
...
JunmpPoliceStation/Controllers/InventoryController.cs
View file @
7b1ffc81
差异被折叠。
点击展开。
JunmpPoliceStation/Controllers/PolicemanController.cs
View file @
7b1ffc81
差异被折叠。
点击展开。
JunmpPoliceStation/Controllers/TjController.cs
View file @
7b1ffc81
...
...
@@ -662,6 +662,7 @@ namespace JunmpPoliceStation.Controllers
OrgName
=
string
.
IsNullOrEmpty
(
c
.
FirstOrDefault
().
DName
)
?
c
.
FirstOrDefault
().
OrgName
:
c
.
FirstOrDefault
().
DName
,
c
.
FirstOrDefault
().
FindCode
,
c
.
FirstOrDefault
().
OrgCode
,
c
.
FirstOrDefault
().
OrgId
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
6
&&
f
.
CurrentState
!=
null
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
...
...
@@ -674,6 +675,7 @@ namespace JunmpPoliceStation.Controllers
children
=
c
.
OrderBy
(
z
=>
z
.
TypeOneId
).
ThenBy
(
z
=>
z
.
TypeTwoId
).
ThenBy
(
z
=>
z
.
TypeThreeId
).
GroupBy
(
a
=>
a
.
EquipmentCode
).
Select
(
c
=>
new
{
id
=
c
.
FirstOrDefault
().
EquipmentCode
,
code
=
c
.
FirstOrDefault
().
EquipmentCode1
,
name
=
c
.
FirstOrDefault
().
EquipmentName
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
6
&&
f
.
CurrentState
!=
null
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)).
Count
(),
...
...
@@ -684,7 +686,7 @@ namespace JunmpPoliceStation.Controllers
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
||
f
.
bfCount
!=
0
)).
ToList
()
}).
Where
(
f
=>
f
.
id
!=
null
&&
(
f
.
zsCount
!=
0
||
f
.
bfCount
!=
0
)).
OrderBy
(
f
=>
f
.
code
).
ToList
()
}).
ToList
();
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
||
c
.
bfCount
!=
0
)
...
...
@@ -725,6 +727,7 @@ namespace JunmpPoliceStation.Controllers
OrgName
=
string
.
IsNullOrEmpty
(
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
DName
)
?
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
OrgName
:
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
DName
,
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
FindCode
,
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
OrgCode
,
c
.
OrderBy
(
f
=>
f
.
OrgCode
).
FirstOrDefault
().
OrgId
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
6
&&
f
.
CurrentState
!=
null
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)).
Count
(),
ckCount
=
c
.
Where
(
f
=>
!(
f
.
CurrentState
==
null
||
f
.
CurrentState
.
Equals
(
0
)
||
f
.
CurrentState
.
Equals
(
6
))).
Count
(),
...
...
@@ -737,6 +740,7 @@ namespace JunmpPoliceStation.Controllers
children
=
c
.
OrderBy
(
z
=>
z
.
TypeOneId
).
ThenBy
(
z
=>
z
.
TypeTwoId
).
ThenBy
(
z
=>
z
.
TypeThreeId
).
GroupBy
(
a
=>
a
.
EquipmentCode
).
Select
(
c
=>
new
{
id
=
c
.
FirstOrDefault
().
EquipmentCode
,
code
=
c
.
FirstOrDefault
().
EquipmentCode1
,
name
=
c
.
FirstOrDefault
().
EquipmentName
,
zsCount
=
c
.
Count
(
f
=>
f
.
CurrentState
!=
6
&&
f
.
CurrentState
!=
null
),
zkCount
=
c
.
Where
(
f
=>
f
.
CurrentState
.
Equals
(
0
)).
Count
(),
...
...
@@ -747,7 +751,7 @@ namespace JunmpPoliceStation.Controllers
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
||
f
.
bfCount
!=
0
)).
ToList
()
}).
Where
(
f
=>
f
.
id
!=
null
&&
(
f
.
zsCount
!=
0
||
f
.
bfCount
!=
0
)).
OrderBy
(
f
=>
f
.
code
).
ToList
()
}).
ToList
();
data
=
data
.
Where
(
c
=>
c
.
zsCount
!=
0
||
c
.
bfCount
!=
0
)
...
...
@@ -870,7 +874,7 @@ namespace JunmpPoliceStation.Controllers
var
EquipmentList
=
_unitOfWork
.
EquipmentInventoryRepository
.
GetList
(
expression
,
null
,
false
,
param
).
ToList
();
var
datas
=
EquipmentList
.
GroupBy
(
p
=>
p
.
EquipmentCode
).
Select
(
c
=>
new
{
code
=
c
.
FirstOrDefault
().
EquipmentCodeNavigation
?.
Equipment
?.
Code
,
code
=
c
.
FirstOrDefault
().
EquipmentCodeNavigation
?.
Code
,
equipmentCode
=
c
.
Key
,
equipmentName
=
c
.
FirstOrDefault
().
EquipmentCodeNavigation
.
Name
,
sumCount
=
c
.
Where
(
p
=>
p
.
CurrentState
!=
6
).
Count
(),
...
...
@@ -1659,6 +1663,8 @@ namespace JunmpPoliceStation.Controllers
TypeTwoId
=
c
.
FirstOrDefault
().
TypeTwoId
,
TypeThreeId
=
c
.
FirstOrDefault
().
TypeThreeId
,
EquipmentCode
=
c
.
FirstOrDefault
().
EquipmentCode
,
EquCode
=
c
.
FirstOrDefault
().
EquCode
,
EquipmentSizecode
=
c
.
FirstOrDefault
().
EquipmentSizecode
,
ParentName
=
c
.
FirstOrDefault
().
Name
,
EquipmentName
=
c
.
FirstOrDefault
().
EquipmentName
,
...
...
@@ -1670,8 +1676,8 @@ namespace JunmpPoliceStation.Controllers
).
OrderBy
(
x
=>
x
.
id
)
.
ThenBy
(
x
=>
x
.
TypeTwoId
)
.
ThenBy
(
x
=>
x
.
TypeThreeId
)
.
ThenBy
(
x
=>
x
.
Equ
ipment
Code
)
.
ThenBy
(
x
=>
x
.
EquipmentSizecod
e
)
.
ThenBy
(
x
=>
x
.
EquCode
)
.
ThenBy
(
x
=>
x
.
SizeNam
e
)
.
ToList
();
return
JsonManager
.
ReturnSuccessResponse
(
new
...
...
JunmpPoliceStation/Controllers/ViewController.cs
View file @
7b1ffc81
...
...
@@ -482,7 +482,12 @@ namespace JunmpPoliceStation.Controllers
IQueryable
<
ViewEquipment
>
ViewEquipmentList
=
_unitOfWork
.
ViewEquipmentRepository
.
GetArray
(
ViewEquipmentExpression
,
t
=>
t
.
FindCode
,
false
);
var
groupList
=
ViewEquipmentList
.
GroupBy
(
c
=>
c
.
ParentName
).
Select
(
g
=>
new
{
name
=
g
.
Key
,
value
=
g
.
Count
()
}).
ToList
();
var
groupList
=
ViewEquipmentList
.
GroupBy
(
c
=>
new
{
c
.
TypeOneId
,
c
.
ParentName
})
.
Select
(
g
=>
new
{
id
=
g
.
Key
.
TypeOneId
,
name
=
g
.
Key
.
ParentName
,
value
=
g
.
Count
()
})
.
ToList
()
.
OrderBy
(
x
=>
x
.
id
)
.
ToList
();
return
JsonManager
.
ReturnSuccessResponse
(
groupList
);
...
...
@@ -1147,7 +1152,7 @@ namespace JunmpPoliceStation.Controllers
List
<
Object
>
tList
=
new
List
<
Object
>();
for
(
var
i
=
0
;
i
<
data
.
Count
;
i
++)
{
var
t
=
new
{
ParentName
=
data
[
i
].
ParentName
,
近三个月报废数
=
data
[
i
].
WeekP
,
近半年
使
报废数
=
data
[
i
].
MonthP
};
var
t
=
new
{
ParentName
=
data
[
i
].
ParentName
,
近三个月报废数
=
data
[
i
].
WeekP
,
近半年报废数
=
data
[
i
].
MonthP
};
tList
.
Add
(
t
);
}
return
JsonManager
.
ReturnSuccessResponse
(
tList
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论