Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
8b5ca585
提交
8b5ca585
authored
8月 17, 2021
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(装备管理): 新增了是否是配件字段
设备统计中新增是否是配件字段,在已报废,已销毁,已退役中添加是否是配件字段
上级
2bc956f4
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
9 行增加
和
1 行删除
+9
-1
DeviceNewVo.java
...a/com/tykj/dev/device/library/subject/vo/DeviceNewVo.java
+3
-0
StatisticalController.java
...ykj/dev/statistical/controller/StatisticalController.java
+2
-1
ScrappedDestroyedRetiredVo.java
...m/tykj/dev/statistical/vo/ScrappedDestroyedRetiredVo.java
+4
-0
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/DeviceNewVo.java
浏览文件 @
8b5ca585
...
@@ -42,4 +42,7 @@ public class DeviceNewVo {
...
@@ -42,4 +42,7 @@ public class DeviceNewVo {
@ApiModelProperty
(
value
=
"装备id"
)
@ApiModelProperty
(
value
=
"装备id"
)
private
List
<
Integer
>
devicesId
;
private
List
<
Integer
>
devicesId
;
@ApiModelProperty
(
"是否是配件"
)
private
Integer
isPart
;
}
}
dev-statistical/src/main/java/com/tykj/dev/statistical/controller/StatisticalController.java
浏览文件 @
8b5ca585
...
@@ -299,7 +299,7 @@ public class StatisticalController {
...
@@ -299,7 +299,7 @@ public class StatisticalController {
List
<
ScrappedDestroyedRetiredVo
>
destroyedRetiredVoList
=
new
ArrayList
<>();
List
<
ScrappedDestroyedRetiredVo
>
destroyedRetiredVoList
=
new
ArrayList
<>();
if
(
lifeStatus
.
containsAll
(
deviceLibrarySelectVo
.
getLifeStatus
())){
if
(
lifeStatus
.
containsAll
(
deviceLibrarySelectVo
.
getLifeStatus
())){
//进行组合
//进行组合
Map
<
String
,
List
<
DeviceLibrary
>>
map
=
libraryList
.
stream
().
collect
(
groupingBy
(
deviceLibrary
->
deviceLibrary
.
getModel
()
+
"Ǵ"
+
deviceLibrary
.
getName
()
+
"Ǵ"
+
deviceLibrary
.
getMatchingRangeName
()));
Map
<
String
,
List
<
DeviceLibrary
>>
map
=
libraryList
.
stream
().
collect
(
groupingBy
(
deviceLibrary
->
deviceLibrary
.
getModel
()
+
"Ǵ"
+
deviceLibrary
.
getName
()
+
"Ǵ"
+
deviceLibrary
.
getMatchingRangeName
()
+
"Ǵ"
+
deviceLibrary
.
getIsPart
()
));
if
(
map
.
size
()>
0
){
if
(
map
.
size
()>
0
){
for
(
String
s
:
map
.
keySet
())
{
for
(
String
s
:
map
.
keySet
())
{
String
[]
strings
=
s
.
split
(
"Ǵ"
);
String
[]
strings
=
s
.
split
(
"Ǵ"
);
...
@@ -308,6 +308,7 @@ public class StatisticalController {
...
@@ -308,6 +308,7 @@ public class StatisticalController {
scrappedDestroyedRetiredVo
.
setModel
(
strings
[
0
]);
scrappedDestroyedRetiredVo
.
setModel
(
strings
[
0
]);
scrappedDestroyedRetiredVo
.
setName
(
strings
[
1
]);
scrappedDestroyedRetiredVo
.
setName
(
strings
[
1
]);
scrappedDestroyedRetiredVo
.
setMatchingRangeName
(
strings
[
2
]);
scrappedDestroyedRetiredVo
.
setMatchingRangeName
(
strings
[
2
]);
scrappedDestroyedRetiredVo
.
setIsPart
(
Integer
.
valueOf
(
strings
[
3
]));
scrappedDestroyedRetiredVo
.
setNum
(
map
.
get
(
s
).
size
());
scrappedDestroyedRetiredVo
.
setNum
(
map
.
get
(
s
).
size
());
List
<
Integer
>
ids
=
new
ArrayList
<>();
List
<
Integer
>
ids
=
new
ArrayList
<>();
List
<
DeviceLibrary
>
deviceLibraries
=
map
.
get
(
s
);
List
<
DeviceLibrary
>
deviceLibraries
=
map
.
get
(
s
);
...
...
dev-statistical/src/main/java/com/tykj/dev/statistical/vo/ScrappedDestroyedRetiredVo.java
浏览文件 @
8b5ca585
...
@@ -38,4 +38,8 @@ public class ScrappedDestroyedRetiredVo {
...
@@ -38,4 +38,8 @@ public class ScrappedDestroyedRetiredVo {
@ApiModelProperty
(
value
=
"装备id"
)
@ApiModelProperty
(
value
=
"装备id"
)
private
List
<
Integer
>
devicesId
;
private
List
<
Integer
>
devicesId
;
@ApiModelProperty
(
value
=
"是否是配件"
)
private
Integer
isPart
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论