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
5e654dc7
Commit
5e654dc7
authored
Jul 07, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整综合统计查询
parent
3aab2ad9
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
47 additions
and
17 deletions
+47
-17
DataQualityScoreEnum.java
...oot/module/statistics/api/enums/DataQualityScoreEnum.java
+3
-4
UnitTypeEnum.java
...n/amos/boot/module/statistics/api/enums/UnitTypeEnum.java
+42
-11
ComprehensiveStatisticalAnalysisController.java
...ontroller/ComprehensiveStatisticalAnalysisController.java
+2
-2
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+0
-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/DataQualityScoreEnum.java
View file @
5e654dc7
...
@@ -17,10 +17,9 @@ public enum DataQualityScoreEnum {
...
@@ -17,10 +17,9 @@ public enum DataQualityScoreEnum {
* *设备等级
* *设备等级
*/
*/
I
(
"一级"
,
"3"
),
I
(
"一级(只有设备名称其他使用登记证上信息无)"
,
"3"
),
II
(
"二级"
,
"2"
),
II
(
"二级(只有设备名称和使用登记证编号其他使用登记证上信息无)"
,
"2"
),
III
(
"三级"
,
"1"
),
III
(
"三级(使用登记证上信息齐全)"
,
"1"
);
;
private
String
name
;
private
String
name
;
private
String
code
;
private
String
code
;
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/enums/UnitTypeEnum.java
View file @
5e654dc7
...
@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSONObject;
...
@@ -5,7 +5,9 @@ import com.alibaba.fastjson.JSONObject;
import
lombok.AllArgsConstructor
;
import
lombok.AllArgsConstructor
;
import
lombok.Getter
;
import
lombok.Getter
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
@AllArgsConstructor
@AllArgsConstructor
...
@@ -16,16 +18,17 @@ public enum UnitTypeEnum {
...
@@ -16,16 +18,17 @@ public enum UnitTypeEnum {
* *注册单位类型
* *注册单位类型
*/
*/
sydw
(
"使用单位"
,
"1232"
),
sydw
(
"使用单位"
,
"1232"
,
"use"
),
czdw
(
"充装单位"
,
"1231"
),
czdw
(
"充装单位"
,
"1231"
,
"license"
),
jyjcjg
(
"检验检测机构"
,
"1233"
),
jyjcjg
(
"检验检测机构"
,
"1233"
,
"license"
),
azgzwxdw
(
"安装改造维修单位"
,
"1234"
),
azgzwxdw
(
"安装改造维修单位"
,
"1234"
,
"license"
),
zzdw
(
"制造单位"
,
"1236"
),
zzdw
(
"制造单位"
,
"1236"
,
"license"
),
sjdw
(
"设计单位"
,
"1235"
),
sjdw
(
"设计单位"
,
"1235"
,
"license"
),
grzt
(
"个人主体"
,
"6599"
);
grzt
(
"个人主体"
,
"6599"
,
"use"
);
private
String
name
;
private
String
name
;
private
String
code
;
private
String
code
;
private
String
type
;
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getCode
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getCode
=
new
HashMap
<>();
...
@@ -38,15 +41,43 @@ public enum UnitTypeEnum {
...
@@ -38,15 +41,43 @@ public enum UnitTypeEnum {
}
}
}
}
public
static
JSONArray
getAll
(){
public
static
JSONArray
getAll
()
{
JSONArray
jsonArray
=
new
JSONArray
();
JSONArray
jsonArray
=
new
JSONArray
();
for
(
UnitTypeEnum
e
:
UnitTypeEnum
.
values
())
{
for
(
UnitTypeEnum
e
:
UnitTypeEnum
.
values
())
{
JSONObject
jsonObject
=
new
JSONObject
();
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"label"
,
e
.
name
);
jsonObject
.
put
(
"label"
,
e
.
name
);
jsonObject
.
put
(
"value"
,
e
.
name
);
jsonObject
.
put
(
"value"
,
e
.
name
);
jsonObject
.
put
(
"key"
,
e
.
code
);
jsonObject
.
put
(
"key"
,
e
.
code
);
jsonArray
.
add
(
jsonObject
);
jsonArray
.
add
(
jsonObject
);
}
}
return
jsonArray
;
return
jsonArray
;
}
}
public
static
List
<
Map
<
String
,
Object
>>
getUnitTypeByCategory
(
String
category
)
{
List
<
Map
<
String
,
Object
>>
list
=
new
ArrayList
<>();
for
(
UnitTypeEnum
e
:
UnitTypeEnum
.
values
())
{
if
(
e
.
type
.
equals
(
category
))
{
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"label"
,
e
.
name
);
map
.
put
(
"value"
,
e
.
name
);
map
.
put
(
"key"
,
e
.
code
);
list
.
add
(
map
);
}
}
return
list
;
}
public
static
JSONArray
getUnitTypeByType
(
String
category
)
{
JSONArray
jsonArray
=
new
JSONArray
();
for
(
UnitTypeEnum
e
:
UnitTypeEnum
.
values
())
{
if
(
e
.
type
.
equals
(
category
))
{
JSONObject
jsonObject
=
new
JSONObject
();
jsonObject
.
put
(
"label"
,
e
.
name
);
jsonObject
.
put
(
"value"
,
e
.
name
);
jsonObject
.
put
(
"key"
,
e
.
code
);
jsonArray
.
add
(
jsonObject
);
}
}
return
jsonArray
;
}
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-biz/src/main/java/com/yeejoin/amos/boot/module/statistcs/biz/controller/ComprehensiveStatisticalAnalysisController.java
View file @
5e654dc7
...
@@ -96,8 +96,8 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
...
@@ -96,8 +96,8 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/select/queryUnitType"
)
@GetMapping
(
value
=
"/select/queryUnitType"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询单位类型"
,
notes
=
"查询单位类型"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"查询单位类型"
,
notes
=
"查询单位类型"
)
public
ResponseModel
<
JSONArray
>
queryUnitType
()
{
public
ResponseModel
<
JSONArray
>
queryUnitType
(
@RequestParam
(
required
=
false
)
String
type
)
{
return
ResponseHelper
.
buildResponse
(
statisticalAnalysisService
.
queryUnitType
());
return
ResponseHelper
.
buildResponse
(
statisticalAnalysisService
.
queryUnitType
(
type
));
}
}
/**
/**
...
...
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/ComprehensiveStatisticalAnalysisServiceImpl.java
View file @
5e654dc7
This diff is collapsed.
Click to expand it.
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