Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
52a09525
提交
52a09525
authored
11月 14, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(自查模块): 修改自查
修改自查
上级
b42e0d47
全部展开
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
33 行增加
和
0 行删除
+33
-0
DeviceLibraryController.java
...ev/device/library/controller/DeviceLibraryController.java
+21
-0
DeviceLibraryService.java
...tykj/dev/device/library/service/DeviceLibraryService.java
+9
-0
DeviceLibraryServiceImpl.java
...device/library/service/impl/DeviceLibraryServiceImpl.java
+0
-0
DeviceLibrarySelectVo.java
.../dev/device/library/subject/vo/DeviceLibrarySelectVo.java
+3
-0
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/controller/DeviceLibraryController.java
浏览文件 @
52a09525
...
@@ -643,6 +643,27 @@ public class DeviceLibraryController {
...
@@ -643,6 +643,27 @@ public class DeviceLibraryController {
map
.
put
(
"types"
,
types
.
stream
().
map
(
integer
->
new
TypeVo
(
integer
,
styleMap
.
get
(
integer
))).
collect
(
Collectors
.
toList
()));
map
.
put
(
"types"
,
types
.
stream
().
map
(
integer
->
new
TypeVo
(
integer
,
styleMap
.
get
(
integer
))).
collect
(
Collectors
.
toList
()));
return
ResultUtil
.
success
(
map
);
return
ResultUtil
.
success
(
map
);
}
}
@ApiOperation
(
value
=
"模糊查询核心装备统计分页(可以勾选多个单位)"
,
notes
=
"可以通过这个接口查询装备列表,全省设备库"
)
@PostMapping
(
"/core/stat/summary/unitList"
)
public
ResponseEntity
getDeviceStatisticsPageUnitList
(
@RequestBody
DeviceLibrarySelectVo
deviceLibrarySelectVo
)
{
List
<
DeviceStatisticsVo
>
deviceStatisticsVoList
=
deviceLibraryService
.
getDeviceStatisticsPage1
(
deviceLibrarySelectVo
,
deviceLibrarySelectVo
.
getPageable
(),
deviceLibrarySelectVo
.
getPageable
().
getSort
());
List
<
DeviceStatisticsVo
>
deviceStatisticsVoSorts
=
deviceStatisticsVoList
.
stream
()
.
sorted
(
Comparator
.
comparing
(
DeviceStatisticsVo:
:
getModel
).
thenComparing
(
DeviceStatisticsVo:
:
getName
)).
collect
(
Collectors
.
toList
());
Page
<
DeviceStatisticsVo
>
deviceStatisticsVos
=
PageUtil
.
getPerPage
(
deviceLibrarySelectVo
.
getPage
(),
deviceLibrarySelectVo
.
getSize
(),
deviceStatisticsVoSorts
,
deviceLibrarySelectVo
.
getPageable
());
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
Map
<
Integer
,
String
>
styleMap
=
configCache
.
getStyleMap
();
List
<
String
>
models
=
deviceStatisticsVoList
.
stream
().
map
(
DeviceStatisticsVo:
:
getModel
).
distinct
().
collect
(
Collectors
.
toList
());
List
<
String
>
modelToSort
=
DeviceModelSort
.
modelToSort
(
models
);
map
.
put
(
"pages"
,
deviceStatisticsVos
);
map
.
put
(
"models"
,
modelToSort
);
//名称排序
map
.
put
(
"names"
,
deviceStatisticsVoList
.
stream
().
map
(
DeviceStatisticsVo:
:
getName
).
distinct
().
sorted
(
Comparator
.
comparing
(
String:
:
toString
)).
collect
(
Collectors
.
toList
()));
//形态
List
<
Integer
>
types
=
deviceStatisticsVoList
.
stream
().
map
(
DeviceStatisticsVo:
:
getType
).
distinct
().
collect
(
Collectors
.
toList
());
Collections
.
sort
(
types
);
map
.
put
(
"types"
,
types
.
stream
().
map
(
integer
->
new
TypeVo
(
integer
,
styleMap
.
get
(
integer
))).
collect
(
Collectors
.
toList
()));
return
ResultUtil
.
success
(
map
);
}
// @ApiOperation(value = "本级模糊查询核心装备统计分页", notes = "可以通过这个接口查询装备列表")
// @ApiOperation(value = "本级模糊查询核心装备统计分页", notes = "可以通过这个接口查询装备列表")
// @PostMapping("/core/stat/local/summary")
// @PostMapping("/core/stat/local/summary")
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/DeviceLibraryService.java
浏览文件 @
52a09525
...
@@ -51,6 +51,15 @@ public interface DeviceLibraryService {
...
@@ -51,6 +51,15 @@ public interface DeviceLibraryService {
* @param pageable 获取装备统计分页
* @param pageable 获取装备统计分页
*/
*/
List
<
DeviceStatisticsVo
>
getDeviceStatisticsPage
(
DeviceLibrarySelectVo
deviceLibrarySelectVo
,
Pageable
pageable
,
Sort
sort
);
List
<
DeviceStatisticsVo
>
getDeviceStatisticsPage
(
DeviceLibrarySelectVo
deviceLibrarySelectVo
,
Pageable
pageable
,
Sort
sort
);
/**
* 后续修改为可以勾选多个单位
* @param deviceLibrarySelectVo
* @param pageable
* @param sort
* @return
*/
List
<
DeviceStatisticsVo
>
getDeviceStatisticsPage1
(
DeviceLibrarySelectVo
deviceLibrarySelectVo
,
Pageable
pageable
,
Sort
sort
);
// /**
// /**
// * @param deviceLibrarySelectVo 装备查询vo
// * @param deviceLibrarySelectVo 装备查询vo
// * @param pageable 获取装备统计分页
// * @param pageable 获取装备统计分页
...
...
dev-library/src/main/java/com/tykj/dev/device/library/service/impl/DeviceLibraryServiceImpl.java
浏览文件 @
52a09525
差异被折叠。
点击展开。
dev-library/src/main/java/com/tykj/dev/device/library/subject/vo/DeviceLibrarySelectVo.java
浏览文件 @
52a09525
...
@@ -146,4 +146,7 @@ public class DeviceLibrarySelectVo extends CustomPage {
...
@@ -146,4 +146,7 @@ public class DeviceLibrarySelectVo extends CustomPage {
@ApiModelProperty
(
value
=
"装备序列号"
,
example
=
"123-1"
)
@ApiModelProperty
(
value
=
"装备序列号"
,
example
=
"123-1"
)
public
String
seqNumber
;
public
String
seqNumber
;
@ApiModelProperty
(
value
=
"单位id的集合"
)
private
List
<
Integer
>
unitIdList
;
}
}
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论