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
56880ed8
Commit
56880ed8
authored
Jul 31, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*)业务履历、问题履历合并
parent
09d8856a
Show whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
59 additions
and
21 deletions
+59
-21
DPSubBizServiceImpl.java
...odule/statistcs/biz/service/impl/DPSubBizServiceImpl.java
+3
-3
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+39
-6
company.json
...odule-statistics-biz/src/main/resources/json/company.json
+7
-2
equip_1000.json
...le-statistics-biz/src/main/resources/json/equip_1000.json
+1
-1
equip_2000.json
...le-statistics-biz/src/main/resources/json/equip_2000.json
+1
-1
equip_3000.json
...le-statistics-biz/src/main/resources/json/equip_3000.json
+1
-1
equip_4000.json
...le-statistics-biz/src/main/resources/json/equip_4000.json
+1
-1
equip_5000.json
...le-statistics-biz/src/main/resources/json/equip_5000.json
+1
-1
equip_6000.json
...le-statistics-biz/src/main/resources/json/equip_6000.json
+1
-1
equip_8000.json
...le-statistics-biz/src/main/resources/json/equip_8000.json
+1
-1
equip_9000.json
...le-statistics-biz/src/main/resources/json/equip_9000.json
+1
-1
problem.json
...odule-statistics-biz/src/main/resources/json/problem.json
+2
-2
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/DPSubBizServiceImpl.java
View file @
56880ed8
...
@@ -46,11 +46,11 @@ public class DPSubBizServiceImpl {
...
@@ -46,11 +46,11 @@ public class DPSubBizServiceImpl {
/**
/**
* 问题记录列表
* 问题记录列表
* @param
equip
Id
* @param
source
Id
* @return
* @return
*/
*/
public
List
<
Map
<
String
,
String
>>
queryProblemListBy
EquipId
(
String
equip
Id
)
{
public
List
<
Map
<
String
,
String
>>
queryProblemListBy
SourceId
(
String
source
Id
)
{
return
dpSubBizMapper
.
queryForSafetyProblemTracingList
(
equip
Id
).
stream
()
return
dpSubBizMapper
.
queryForSafetyProblemTracingList
(
source
Id
).
stream
()
.
map
(
x
->
{
.
map
(
x
->
{
Map
<
String
,
String
>
map
=
new
HashMap
<>();
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"key"
,
x
.
get
(
"sequence_nbr"
));
map
.
put
(
"key"
,
x
.
get
(
"sequence_nbr"
));
...
...
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 @
56880ed8
...
@@ -32,9 +32,7 @@ import javax.script.Invocable;
...
@@ -32,9 +32,7 @@ import javax.script.Invocable;
import
javax.script.ScriptEngine
;
import
javax.script.ScriptEngine
;
import
javax.script.ScriptEngineManager
;
import
javax.script.ScriptEngineManager
;
import
java.net.URI
;
import
java.net.URI
;
import
java.util.HashMap
;
import
java.util.*
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.stream.Collectors
;
import
java.util.stream.Collectors
;
/**
/**
...
@@ -240,10 +238,10 @@ public class DPSubServiceImpl {
...
@@ -240,10 +238,10 @@ public class DPSubServiceImpl {
this
.
processLabel
(
status
,
param
.
getString
(
"EQU_STATE"
));
this
.
processLabel
(
status
,
param
.
getString
(
"EQU_STATE"
));
// 处理问题列表
// 处理问题列表
List
<
Map
<
String
,
String
>>
problem
=
dpSubBizService
.
queryProblemListBy
Equip
Id
(
param
.
getString
(
"record"
));
List
<
Map
<
String
,
String
>>
problem
=
dpSubBizService
.
queryProblemListBy
Source
Id
(
param
.
getString
(
"record"
));
if
(!
ValidationUtil
.
isEmpty
(
problem
)){
if
(!
ValidationUtil
.
isEmpty
(
problem
)){
JSONObject
qrcode
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.qrcode"
);
JSONObject
qrcode
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.qrcode"
);
qrcode
.
put
(
"problem"
,
problem
);
qrcode
.
put
(
"problem"
,
problem
.
subList
(
0
,
1
)
);
}
}
// 处理监管履历
// 处理监管履历
...
@@ -251,6 +249,23 @@ public class DPSubServiceImpl {
...
@@ -251,6 +249,23 @@ public class DPSubServiceImpl {
if
(!
ValidationUtil
.
isEmpty
(
datas
)){
if
(!
ValidationUtil
.
isEmpty
(
datas
)){
JSONObject
infoRecords
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.infoRecords"
);
JSONObject
infoRecords
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.infoRecords"
);
infoRecords
.
put
(
"datas"
,
datas
);
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
);
}
param
.
put
(
"reghistory"
,
datas
);
param
.
put
(
"reghistory"
,
datas
);
}
}
}
else
if
(
tab
.
getString
(
"template"
).
contains
(
"company"
)){
}
else
if
(
tab
.
getString
(
"template"
).
contains
(
"company"
)){
...
@@ -258,7 +273,25 @@ public class DPSubServiceImpl {
...
@@ -258,7 +273,25 @@ public class DPSubServiceImpl {
JSONArray
status
=
(
JSONArray
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.status"
);
JSONArray
status
=
(
JSONArray
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.status"
);
this
.
processLabel
(
status
,
result
.
getString
(
"unitType"
));
this
.
processLabel
(
status
,
result
.
getString
(
"unitType"
));
this
.
processLabel
(
status
,
result
.
getString
(
"operatingStatus"
));
this
.
processLabel
(
status
,
result
.
getString
(
"operatingStatus"
));
// 处理问题列表
List
<
Map
<
String
,
String
>>
problem
=
dpSubBizService
.
queryProblemListBySourceId
(
param
.
getString
(
"sequenceNbr"
));
if
(!
ValidationUtil
.
isEmpty
(
problem
)){
JSONObject
qrcode
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.qrcode"
);
qrcode
.
put
(
"problem"
,
problem
.
subList
(
0
,
1
));
// 企业时间轴显示问题履历
List
<
Map
<
String
,
String
>>
list
=
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
;
}).
sorted
(
Comparator
.
comparing
(
(
Map
<
String
,
String
>
map
)
->
map
.
get
(
"operatingTime"
),
Comparator
.
comparing
(
String:
:
toString
).
reversed
()
)).
collect
(
Collectors
.
toList
());
JSONObject
infoRecords
=
(
JSONObject
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.infoRecords"
);
infoRecords
.
put
(
"datas"
,
list
);
}
// 处理图片
// 处理图片
JSONArray
jsonArray
=
result
.
getJSONArray
(
"unitBusinessLicense"
);
JSONArray
jsonArray
=
result
.
getJSONArray
(
"unitBusinessLicense"
);
if
(!
ValidationUtil
.
isEmpty
(
jsonArray
)){
if
(!
ValidationUtil
.
isEmpty
(
jsonArray
)){
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/company.json
View file @
56880ed8
...
@@ -52,7 +52,7 @@
...
@@ -52,7 +52,7 @@
"apiPath"
:
"/jg/equipment-register/page"
,
"apiPath"
:
"/jg/equipment-register/page"
,
"params"
:
{
"params"
:
{
"number"
:
1
,
"number"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"USE_UNIT_CREDIT_CODE"
:
"{useUnitCode}"
"USE_UNIT_CREDIT_CODE"
:
"{useUnitCode}"
}
}
}
}
...
@@ -89,7 +89,12 @@
...
@@ -89,7 +89,12 @@
{
"key"
:
"useContact"
,
"label"
:
"单位联系人"
},
{
"key"
:
"useContact"
,
"label"
:
"单位联系人"
},
{
"key"
:
"contactPhone"
,
"label"
:
"联系电话"
},
{
"key"
:
"contactPhone"
,
"label"
:
"联系电话"
},
{
"key"
:
"keyUnit"
,
"label"
:
"是否重点监控单位"
}
{
"key"
:
"keyUnit"
,
"label"
:
"是否重点监控单位"
}
]
],
"infoRecords"
:
{
"title"
:
"问题记录"
,
"renderType"
:
"timeline"
,
"datas"
:
[]
}
},
},
"basic"
:
{
"basic"
:
{
"columns"
:
2
,
"columns"
:
2
,
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_1000.json
View file @
56880ed8
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_2000.json
View file @
56880ed8
...
@@ -115,7 +115,7 @@
...
@@ -115,7 +115,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_3000.json
View file @
56880ed8
...
@@ -111,7 +111,7 @@
...
@@ -111,7 +111,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_4000.json
View file @
56880ed8
...
@@ -107,7 +107,7 @@
...
@@ -107,7 +107,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_5000.json
View file @
56880ed8
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_6000.json
View file @
56880ed8
...
@@ -97,7 +97,7 @@
...
@@ -97,7 +97,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_8000.json
View file @
56880ed8
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/equip_9000.json
View file @
56880ed8
...
@@ -103,7 +103,7 @@
...
@@ -103,7 +103,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"apiPath"
:
"/jg/safety-problem-tracing/equipId/page"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"record"
:
"{record}"
"record"
:
"{record}"
}
}
}
}
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/resources/json/problem.json
View file @
56880ed8
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/equip/list"
,
"apiPath"
:
"/jg/safety-problem-tracing/equip/list"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"sequenceNbr"
:
"{sequenceNbr}"
"sequenceNbr"
:
"{sequenceNbr}"
}
}
}
}
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
"apiPath"
:
"/jg/safety-problem-tracing/unit/list"
,
"apiPath"
:
"/jg/safety-problem-tracing/unit/list"
,
"params"
:
{
"params"
:
{
"current"
:
1
,
"current"
:
1
,
"size"
:
1
4
,
"size"
:
1
0
,
"sequenceNbr"
:
"{sequenceNbr}"
"sequenceNbr"
:
"{sequenceNbr}"
}
}
}
}
...
...
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