Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
device-back
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Matrix
device-back
Commits
029df4f2
提交
029df4f2
authored
9月 23, 2020
作者:
Matrix
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[核查模块] 修复了自动核查的地区统计数据异常的问题
上级
ab967d5c
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
11 行增加
和
10 行删除
+11
-10
DeviceCheckController.java
...device/confirmcheck/controller/DeviceCheckController.java
+11
-10
没有找到文件。
dev-confirmcheck/src/main/java/com/tykj/dev/device/confirmcheck/controller/DeviceCheckController.java
浏览文件 @
029df4f2
...
...
@@ -129,7 +129,7 @@ public class DeviceCheckController {
DeviceCheckStat
provinceStatDo
=
initStatData
(
"自动核查"
,
0
,
0
,
baseTitle
+
"浙江省自动核查"
,
"自动-"
+
baseTitle
,
provUnit
.
getName
(),
cityUnits
);
DeviceCheckStat
provStat
=
statRepo
.
save
(
provinceStatDo
);
...
...
@@ -162,7 +162,7 @@ public class DeviceCheckController {
DeviceCheckStat
cityStatDo
=
initStatData
(
"系统发起的统计|"
+
cityUnit
.
getName
()
+
"|"
+
cityUnit
.
getAreaId
(),
0
,
0
,
baseTitle
+
cityUnit
.
getName
()
+
"自动核查统计"
,
"自动-"
+
baseTitle
,
cityUnit
.
getName
(),
countyUnits
);
...
...
@@ -179,9 +179,9 @@ public class DeviceCheckController {
// 构建市自查账单
DeviceCheckDetailEntity
cityDetailDo
=
DeviceCheckDetailEntity
.
EmptyWithChecker
(
"系统发起的自查|"
+
cityUnit
.
getName
()
+
"|"
+
cityUnit
.
getAreaId
(),
baseTitle
+
cityUnit
.
getName
()
+
"核查任务"
,
"自动-"
+
baseTitle
,
0
,
0
,
0
,
0
,
prov
Unit
.
getName
(),
city
Unit
.
getName
(),
devInLib
.
getOrDefault
(
cityUnit
.
getName
(),
new
ArrayList
<>()),
devNotInLib
.
getOrDefault
(
cityUnit
.
getName
(),
new
ArrayList
<>()));
DeviceCheckDetailEntity
cityDetail
=
detailRepo
.
save
(
cityDetailDo
);
...
...
@@ -200,18 +200,18 @@ public class DeviceCheckController {
// 构建县任务
for
(
Units
countyUnit
:
countyUnits
)
{
countyAreaNames
.
add
(
areaCache
.
findById
(
countyUnit
.
getAreaId
()).
getName
());
String
countyName
=
areaCache
.
findById
(
countyUnit
.
getAreaId
()).
getName
();
countyAreaNames
.
add
(
countyName
);
//构建县自查账单
DeviceCheckDetailEntity
countyDetailDo
=
DeviceCheckDetailEntity
.
EmptyWithChecker
(
"系统发起的自查|"
+
countyUnit
.
getName
()
+
"|"
+
countyUnit
.
getAreaId
(),
baseTitle
+
countyUnit
.
getName
()
+
"核查任务"
,
"自动"
+
baseTitle
,
0
,
0
,
0
,
0
,
prov
Unit
.
getName
(),
county
Unit
.
getName
(),
devInLib
.
getOrDefault
(
cityUnit
.
getName
(),
new
ArrayList
<>()),
devNotInLib
.
getOrDefault
(
cityUnit
.
getName
(),
new
ArrayList
<>()));
DeviceCheckDetailEntity
countyDetail
=
detailRepo
.
save
(
countyDetailDo
);
resultIds
.
get
(
"detailId"
).
add
(
countyDetail
.
getId
());
String
countyName
=
areaRepo
.
findNameById
(
countyUnit
.
getAreaId
());
List
<
CheckDeviceStatVo
>
countyStatVoList
=
deviceList
.
stream
()
.
filter
(
d
->
d
.
getOwnUnit
().
equals
(
countyUnit
.
getName
()))
.
map
(
d
->
transUtil
.
device2InitStatVo
(
d
,
countyName
,
cityStat
.
getId
(),
countyDetail
.
getId
()))
...
...
@@ -271,10 +271,11 @@ public class DeviceCheckController {
if
(
csd
.
getRemark
().
split
(
"\\|"
).
length
<=
1
)
{
continue
;
}
String
area
Name
=
csd
.
getRemark
().
split
(
"\\|"
)[
1
];
String
unit
Name
=
csd
.
getRemark
().
split
(
"\\|"
)[
1
];
Integer
cityId
=
Integer
.
valueOf
(
csd
.
getRemark
().
split
(
"\\|"
)[
2
]);
String
cityName
=
areaCache
.
findById
(
cityId
).
getName
();
List
<
String
>
childNames
=
areaRepo
.
findByFatherId
(
cityId
).
stream
().
map
(
Area:
:
getName
).
collect
(
toList
());
cityNames
.
add
(
area
Name
);
cityNames
.
add
(
city
Name
);
cityNames
.
addAll
(
childNames
);
//去除其他地区的数据
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论