Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
3ec48a7f
提交
3ec48a7f
authored
7月 14, 2021
作者:
Matrix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[核查模块] 优化debug日志
上级
efe0566d
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
12 行增加
和
3 行删除
+12
-3
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+12
-3
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
3ec48a7f
...
...
@@ -192,8 +192,9 @@ public class DeviceCheckController {
/**
* 该接口负责处理以下跳转情况
* 1 - 统计跳转
*
1-1 省核查页面 - 市的检查以及省直属的自查任务
* 1-1 省核查页面 - 市的检查以及省直属的自查任务
* 2 - 详情跳转
*
* @param type 7 统计 8 详情
* @param billId 业务id
* @return
...
...
@@ -235,6 +236,7 @@ public class DeviceCheckController {
// 处理子节点,子节点有两种类型 - 检查类统计与自查类数据
if
(
childBusType
.
equals
(
CONFIRM_CHECK_STAT
.
id
))
{
log
.
info
(
"[处理子节点] 子节点为检查类子节点"
);
startTime
=
System
.
currentTimeMillis
();
//市检查
Integer
unitId
=
child
.
getOwnUnit
();
...
...
@@ -271,6 +273,7 @@ public class DeviceCheckController {
finalTime
=
System
.
currentTimeMillis
();
log
.
info
(
"[TEST] child-BILL id = {}的检查任务 , COST {} MS"
,
child
.
getBillId
(),
finalTime
-
startTime
);
}
else
{
log
.
info
(
"[处理子节点] 子节点为自查类子节点"
);
startTime
=
System
.
currentTimeMillis
();
// 省直属 ,省本级自查
...
...
@@ -279,6 +282,8 @@ public class DeviceCheckController {
String
unitName
=
childDetail
.
getCheckUnit
();
List
<
CheckDeviceStatVo
>
list
=
parseStatString2Vo
(
child
.
parse2Bto
(),
childDetail
);
finalTime
=
System
.
currentTimeMillis
();
log
.
info
(
"[test] 自查装备数据转换消耗了{}ms"
,
finalTime
-
startTime
);
List
<
CheckAreaStatVo
>
casList
=
list
.
stream
()
.
map
(
CheckDeviceStatVo:
:
getAreaStatList
)
.
flatMap
(
checkAreaStatVos
->
checkAreaStatVos
.
stream
())
...
...
@@ -302,7 +307,7 @@ public class DeviceCheckController {
ledList
.
add
(
led
);
finalTime
=
System
.
currentTimeMillis
();
log
.
info
(
"[TEST]
CHILD BILL ID = {} 的自查任务COST
{} MS"
,
child
.
getBillId
(),
finalTime
-
startTime
);
log
.
info
(
"[TEST]
子节点账单 ID = {} 的自查任务消耗了
{} MS"
,
child
.
getBillId
(),
finalTime
-
startTime
);
}
}
linkVo
.
setLcDetail
(
lcdList
);
...
...
@@ -1280,7 +1285,7 @@ public class DeviceCheckController {
String
[]
statArray
=
statString
.
split
(
","
);
//将 id - status 转化为 model - count - status(只统计新增和无误的作为数量)
// 根这里u
u
id可以从detail里拿,根据unitId 查到 areaId 根据 areaId 查询到 areaName
// 根这里u
n
id可以从detail里拿,根据unitId 查到 areaId 根据 areaId 查询到 areaName
String
areaName
=
auService
.
findOne
(
AuExample
.
UnitName
,
detail
.
getCheckUnit
()).
getName
();
// detailId与statId只需要查询一次
...
...
@@ -1295,9 +1300,13 @@ public class DeviceCheckController {
.
map
(
s
->
s
.
split
(
"-"
)[
0
])
.
map
(
Integer:
:
parseInt
)
.
collect
(
toList
());
long
start
=
System
.
currentTimeMillis
();
Map
<
Integer
,
DeviceLibrary
>
deviceMap
=
deviceRepo
.
findAllByIdIn
(
idList
)
.
stream
()
.
collect
(
toMap
(
DeviceLibrary:
:
getId
,
Function
.
identity
()));
long
end
=
System
.
currentTimeMillis
();
log
.
info
(
"[核查TEST] 批量查询id集合耗时 {} ms "
,
end
-
start
);
for
(
String
s
:
statArray
)
{
if
(
StringUtils
.
isEmpty
(
s
))
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论