Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
项目统一框架
amos-boot-biz
Commits
ebc93f74
Commit
ebc93f74
authored
Jul 31, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)修改合并问题
parent
62a5eb61
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
20 deletions
+23
-20
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+23
-20
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/service/impl/DPSubServiceImpl.java
View file @
ebc93f74
...
...
@@ -239,35 +239,38 @@ public class DPSubServiceImpl {
// 处理问题列表
List
<
Map
<
String
,
String
>>
problem
=
dpSubBizService
.
queryProblemListBySourceId
(
param
.
getString
(
"record"
));
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
if
(!
ValidationUtil
.
isEmpty
(
problem
)){
JSONObject
qrcode
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.qrcode"
);
qrcode
.
put
(
"problem"
,
problem
.
subList
(
0
,
1
));
List
<
Map
<
String
,
String
>>
collect
=
problem
.
stream
().
map
(
x
->
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"label"
,
x
.
get
(
"type"
));
map
.
put
(
"operater"
,
x
.
get
(
"descr"
));
map
.
put
(
"operatingTime"
,
x
.
get
(
"createDate"
));
return
map
;
}).
collect
(
Collectors
.
toList
());
list
.
addAll
(
collect
);
}
// 处理监管履历
List
<
Map
<
String
,
String
>>
datas
=
dpSubBizService
.
equOnJgServiceOperationRecords
(
param
.
getString
(
"record"
));
if
(!
ValidationUtil
.
isEmpty
(
datas
)){
JSONObject
infoRecords
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.infoRecords"
);
infoRecords
.
put
(
"datas"
,
datas
);
if
(!
ValidationUtil
.
isEmpty
(
problem
)){
// 设备业务履历跟问题履历需要合并
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
list
.
addAll
(
datas
);
List
<
Map
<
String
,
String
>>
collect
=
problem
.
stream
().
map
(
x
->
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"label"
,
x
.
get
(
"type"
));
map
.
put
(
"operater"
,
x
.
get
(
"descr"
));
map
.
put
(
"operatingTime"
,
x
.
get
(
"createDate"
));
return
map
;
}).
collect
(
Collectors
.
toList
());
list
.
addAll
(
collect
);
list
.
sort
(
Comparator
.
comparing
(
(
Map
<
String
,
String
>
map
)
->
map
.
get
(
"operatingTime"
),
Comparator
.
comparing
(
String:
:
toString
).
reversed
()
));
infoRecords
.
put
(
"datas"
,
list
);
}
if
(!
ValidationUtil
.
isEmpty
(
datas
)
||
!
ValidationUtil
.
isEmpty
(
problem
)){
list
.
addAll
(
datas
);
param
.
put
(
"reghistory"
,
datas
);
}
// 设备业务履历跟问题履历需要合并
if
(!
ValidationUtil
.
isEmpty
(
list
)){
JSONObject
infoRecords
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.infoRecords"
);
list
.
sort
(
Comparator
.
comparing
(
(
Map
<
String
,
String
>
map
)
->
map
.
get
(
"operatingTime"
),
Comparator
.
comparing
(
String:
:
toString
).
reversed
()
));
infoRecords
.
put
(
"datas"
,
list
);
}
}
else
if
(
tab
.
getString
(
"template"
).
contains
(
"company"
)){
// 处理标签
JSONArray
status
=
(
JSONArray
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.status"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment