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
ffb074d8
Commit
ffb074d8
authored
Nov 14, 2024
by
麻笑宇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
指标管理代码提交
parent
31914043
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
14 deletions
+37
-14
IssueTypeEnum.java
...join/amos/boot/module/common/api/enums/IssueTypeEnum.java
+22
-4
KrjyydqkServiceImpl.java
...tistcs/biz/service/impl/ZBGLImpl/KrjyydqkServiceImpl.java
+15
-10
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/enums/IssueTypeEnum.java
View file @
ffb074d8
...
...
@@ -2,10 +2,7 @@ package com.yeejoin.amos.boot.module.common.api.enums;
import
lombok.Getter
;
import
java.util.ArrayList
;
import
java.util.EnumSet
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.*
;
@Getter
public
enum
IssueTypeEnum
{
...
...
@@ -83,4 +80,25 @@ public enum IssueTypeEnum {
return
list
;
}
public
static
List
<
String
>
getEnumCodeListByMainBody
(
String
mainBody
)
{
List
<
String
>
list
=
new
ArrayList
<>();
for
(
IssueTypeEnum
testEnum
:
EnumSet
.
allOf
(
IssueTypeEnum
.
class
))
{
if
(
testEnum
.
getMainBody
().
contains
(
mainBody
)){
list
.
add
(
testEnum
.
getCode
());
}
}
return
list
;
}
public
static
List
<
Map
<
String
,
String
>>
getEnumListByMainBody
(
String
mainBody
)
{
List
<
Map
<
String
,
String
>>
list
=
new
ArrayList
<>();
for
(
IssueTypeEnum
testEnum
:
EnumSet
.
allOf
(
IssueTypeEnum
.
class
))
{
if
(
testEnum
.
getMainBody
().
contains
(
mainBody
)){
Map
<
String
,
String
>
map
=
new
HashMap
<>();
map
.
put
(
"name"
,
testEnum
.
getName
());
map
.
put
(
"code"
,
testEnum
.
getCode
());
list
.
add
(
map
);
}
}
return
list
;
}
}
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/ZBGLImpl/KrjyydqkServiceImpl.java
View file @
ffb074d8
...
...
@@ -46,20 +46,25 @@ public class KrjyydqkServiceImpl implements IZBGLService {
for
(
int
i
=
0
;
i
<
5
;
i
++){
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
if
(
i
==
0
){
map
.
put
(
"dataIndex"
,
"lessNum"
);
map
.
put
(
"title"
,
"30分钟内到达次数"
);
map
.
put
(
"dataKey"
,
"lessNum"
);
map
.
put
(
"value"
,
"30分钟内到达次数"
);
map
.
put
(
"chartType"
,
"bar"
);
}
else
if
(
i
==
1
)
{
map
.
put
(
"dataIndex"
,
"greaterNum"
);
map
.
put
(
"title"
,
"超过30分钟到次数"
);
map
.
put
(
"dataKey"
,
"greaterNum"
);
map
.
put
(
"value"
,
"超过30分钟到次数"
);
map
.
put
(
"chartType"
,
"bar"
);
}
else
if
(
i
==
2
){
map
.
put
(
"dataIndex"
,
"levelOne"
);
map
.
put
(
"title"
,
"一级救援次数"
);
map
.
put
(
"dataKey"
,
"levelOne"
);
map
.
put
(
"value"
,
"一级救援次数"
);
map
.
put
(
"chartType"
,
"bar"
);
}
else
if
(
i
==
3
){
map
.
put
(
"dataIndex"
,
"levelTwo"
);
map
.
put
(
"title"
,
"二级救援次数"
);
map
.
put
(
"dataKey"
,
"levelTwo"
);
map
.
put
(
"value"
,
"二级救援次数"
);
map
.
put
(
"chartType"
,
"bar"
);
}
else
{
map
.
put
(
"dataIndex"
,
"levelThree"
);
map
.
put
(
"title"
,
"三级救援次数"
);
map
.
put
(
"dataKey"
,
"levelThree"
);
map
.
put
(
"value"
,
"三级救援次数"
);
map
.
put
(
"chartType"
,
"bar"
);
}
legendData
.
add
(
map
);
}
...
...
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