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
cb31e4db
Commit
cb31e4db
authored
Jul 17, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refact(大屏详情):企业详情设备详情调整
1.企业详情增加企业标签字段 2.设备详情调整增加设备数据质量登记字段
parent
ad0f5d43
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
44 additions
and
1 deletion
+44
-1
DPStatusEnum.java
...n/amos/boot/module/statistics/api/enums/DPStatusEnum.java
+14
-1
DPSubServiceImpl.java
...t/module/statistcs/biz/service/impl/DPSubServiceImpl.java
+30
-0
No files found.
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/enums/DPStatusEnum.java
View file @
cb31e4db
...
...
@@ -31,7 +31,11 @@ public enum DPStatusEnum {
MANAGE_STATUS_OPEN
(
"manageOpen"
,
"在业"
,
"开业"
,
""
,
"success"
),
MANAGE_STATUS_STOP
(
"manageStop"
,
"停业"
,
"停业"
,
""
,
"error"
),
COMPANY_EMPHASIS_MONITOR
(
"emphasisMonitorCompany"
,
"重点监控企业"
,
"重点监控企业"
,
""
,
"success"
),
COMPANY_HIGH_RISK
(
"highRisk"
,
"高风险企业"
,
"高风险企业"
,
""
,
"stop"
);
COMPANY_HIGH_RISK
(
"highRisk"
,
"高风险企业"
,
"高风险企业"
,
""
,
"stop"
),
EQUIP_DATA_QUALITY_SCORE_1
(
"1"
,
"一类"
,
"一类"
,
""
,
"success"
),
EQUIP_DATA_QUALITY_SCORE_2
(
"2"
,
"二类"
,
"二类"
,
""
,
"success"
),
EQUIP_DATA_QUALITY_SCORE_3
(
"3"
,
"三类"
,
"三类"
,
""
,
"success"
);
private
String
key
;
private
String
label
;
...
...
@@ -48,6 +52,15 @@ public enum DPStatusEnum {
return
null
;
}
public
static
DPStatusEnum
getEnumByKey
(
String
key
)
{
for
(
DPStatusEnum
c
:
DPStatusEnum
.
values
())
{
if
(
c
.
getKey
().
equals
(
key
)){
return
c
;
}
}
return
null
;
}
public
static
Map
toMap
(
DPStatusEnum
dpStatusEnum
)
{
Map
map
=
new
HashMap
<>();
map
.
put
(
"key"
,
dpStatusEnum
.
getKey
());
...
...
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 @
cb31e4db
...
...
@@ -266,6 +266,7 @@ public class DPSubServiceImpl {
// 处理标签
JSONArray
status
=
(
JSONArray
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.status"
);
this
.
processLabel
(
status
,
param
.
getString
(
"EQU_STATE"
));
this
.
processLabelByKey
(
status
,
param
.
getString
(
"DATA_QUALITY_SCORE"
));
// 处理问题列表
List
<
Map
<
String
,
String
>>
problem
=
dpSubBizService
.
queryProblemListBySourceId
(
param
.
getString
(
"record"
));
...
...
@@ -306,6 +307,7 @@ public class DPSubServiceImpl {
JSONArray
status
=
(
JSONArray
)
JsonValueUtils
.
getValueByKey
(
content
,
"keyinfo"
,
"keyinfo.status"
);
this
.
processLabel
(
status
,
result
.
getString
(
"unitType"
));
this
.
processLabel
(
status
,
result
.
getString
(
"operatingStatus"
));
this
.
processRegulatoryLabels
(
status
,
result
.
getString
(
"regulatoryLabels"
));
// 处理问题列表
List
<
Map
<
String
,
String
>>
problem
=
dpSubBizService
.
queryProblemListBySourceId
(
param
.
getString
(
"sequenceNbr"
));
if
(!
ValidationUtil
.
isEmpty
(
problem
)){
...
...
@@ -344,6 +346,34 @@ public class DPSubServiceImpl {
return
status
;
}
private
JSONArray
processRegulatoryLabels
(
JSONArray
status
,
String
labels
){
if
(!
ValidationUtil
.
isEmpty
(
labels
)){
int
i
=
0
;
for
(
String
label
:
labels
.
split
(
","
)){
i
++;
Map
map
=
new
HashMap
<>();
map
.
put
(
"key"
,
i
);
map
.
put
(
"label"
,
label
);
map
.
put
(
"status"
,
label
);
map
.
put
(
"icon"
,
""
);
map
.
put
(
"value"
,
"success"
);
status
.
add
(
map
);
}
}
return
status
;
}
private
JSONArray
processLabelByKey
(
JSONArray
status
,
String
key
){
if
(!
ValidationUtil
.
isEmpty
(
key
)){
DPStatusEnum
enumByStatus
=
DPStatusEnum
.
getEnumByKey
(
key
);
if
(!
ValidationUtil
.
isEmpty
(
enumByStatus
)){
status
.
add
(
DPStatusEnum
.
toMap
(
enumByStatus
));
}
}
return
status
;
}
private
JSONArray
processShowHideRules
(
JSONArray
children
,
Object
showHideRules
,
Object
apiResult
)
{
JSONObject
result
=
JSONObject
.
parseObject
(
apiResult
.
toString
());
Map
<
String
,
String
>
relationMap
=
new
HashMap
<>();
...
...
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