Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
39d5f2ab
提交
39d5f2ab
authored
2月 16, 2022
作者:
zhoushaopan
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat(统计模块): 增加备注
增加备注
上级
7174d399
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
24 行增加
和
0 行删除
+24
-0
DeviceLibraryController.java
...ev/device/library/controller/DeviceLibraryController.java
+14
-0
StatisticalServiceImpl.java
.../dev/statistical/service/impl/StatisticalServiceImpl.java
+1
-0
WorkBench.java
.../src/main/java/com/tykj/dev/statistical/vo/WorkBench.java
+9
-0
没有找到文件。
dev-library/src/main/java/com/tykj/dev/device/library/controller/DeviceLibraryController.java
浏览文件 @
39d5f2ab
...
@@ -1295,6 +1295,20 @@ public class DeviceLibraryController {
...
@@ -1295,6 +1295,20 @@ public class DeviceLibraryController {
}
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@GetMapping
(
"/compare"
)
@ApiOperation
(
value
=
"查看脏数据"
)
public
ResponseEntity
<
List
<
DeviceLibrary
>>
compareData
(){
Integer
unitId
=
userUtils
.
getCurrentUnitId
();
List
<
DeviceLibrary
>
deviceLibraries
=
deviceLibraryService
.
getDeviceByUnitNameAll
(
unitId
);
DeviceLibrarySelectVo
deviceLibrarySelectVo
=
new
DeviceLibrarySelectVo
();
deviceLibrarySelectVo
.
setAreaId
(
2
);
List
<
DeviceLibrary
>
coreDevicePage
=
deviceLibraryService
.
getCoreDevicePage
(
deviceLibrarySelectVo
);
deviceLibraries
.
removeAll
(
coreDevicePage
);
return
ResponseEntity
.
ok
(
coreDevicePage
);
}
// @ApiOperation(value = "修改单位名称", notes = "修改单位名称")
// @ApiOperation(value = "修改单位名称", notes = "修改单位名称")
// @PostMapping("/updateDeviceLocationAndOwnUnit")
// @PostMapping("/updateDeviceLocationAndOwnUnit")
// @Transactional(rollbackFor = Exception.class)
// @Transactional(rollbackFor = Exception.class)
...
...
dev-statistical/src/main/java/com/tykj/dev/statistical/service/impl/StatisticalServiceImpl.java
浏览文件 @
39d5f2ab
...
@@ -547,6 +547,7 @@ public class StatisticalServiceImpl implements StatisticalService {
...
@@ -547,6 +547,7 @@ public class StatisticalServiceImpl implements StatisticalService {
workBench
.
setDailyDeviceNum
(
Long
.
valueOf
(
deviceLibraries
.
stream
().
filter
(
deviceLibrary
->
workBench
.
setDailyDeviceNum
(
Long
.
valueOf
(
deviceLibraries
.
stream
().
filter
(
deviceLibrary
->
deviceLibrary
.
getOwnUnit
().
equals
(
unitName
)&&
Arrays
.
asList
(
2
,
14
).
contains
(
deviceLibrary
.
getLifeStatus
()))
deviceLibrary
.
getOwnUnit
().
equals
(
unitName
)&&
Arrays
.
asList
(
2
,
14
).
contains
(
deviceLibrary
.
getLifeStatus
()))
.
count
()).
intValue
());
.
count
()).
intValue
());
List
<
Task
>
allTasks
=
taskDao
.
findAll
();
List
<
Task
>
allTasks
=
taskDao
.
findAll
();
List
<
Task
>
tasks
=
allTasks
.
stream
().
filter
(
task
->
task
.
getBusinessType
()==
7
).
collect
(
Collectors
.
toList
());
List
<
Task
>
tasks
=
allTasks
.
stream
().
filter
(
task
->
task
.
getBusinessType
()==
7
).
collect
(
Collectors
.
toList
());
List
<
Task
>
tasks2
=
allTasks
.
stream
().
filter
(
task
->
task
.
getBusinessType
()==
4
).
collect
(
Collectors
.
toList
());
List
<
Task
>
tasks2
=
allTasks
.
stream
().
filter
(
task
->
task
.
getBusinessType
()==
4
).
collect
(
Collectors
.
toList
());
...
...
dev-statistical/src/main/java/com/tykj/dev/statistical/vo/WorkBench.java
浏览文件 @
39d5f2ab
...
@@ -15,10 +15,19 @@ public class WorkBench {
...
@@ -15,10 +15,19 @@ public class WorkBench {
private
Integer
packingNum
;
private
Integer
packingNum
;
/**
* 全省装备库
*/
private
Integer
allDeviceNum
;
private
Integer
allDeviceNum
;
/**
* 省级装备库
*/
private
Integer
selfDeviceNum
;
private
Integer
selfDeviceNum
;
/**
* 本级管理库
*/
private
Integer
dailyDeviceNum
;
private
Integer
dailyDeviceNum
;
private
Integer
matchingDeviceNum
;
private
Integer
matchingDeviceNum
;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论