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
2c6e060f
Commit
2c6e060f
authored
Jul 09, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug
parent
030ef710
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
77 additions
and
7 deletions
+77
-7
CompanyAdvanceSearchEnum.java
...module/statistics/api/enums/CompanyAdvanceSearchEnum.java
+1
-1
DataQualityScoreEnum.java
...oot/module/statistics/api/enums/DataQualityScoreEnum.java
+6
-5
EquipAdvanceSearchEnum.java
...t/module/statistics/api/enums/EquipAdvanceSearchEnum.java
+1
-0
ComprehensiveStatisticalAnalysisController.java
...ontroller/ComprehensiveStatisticalAnalysisController.java
+11
-0
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+58
-1
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/CompanyAdvanceSearchEnum.java
View file @
2c6e060f
...
@@ -17,7 +17,7 @@ public enum CompanyAdvanceSearchEnum {
...
@@ -17,7 +17,7 @@ public enum CompanyAdvanceSearchEnum {
ADDRESS
(
"详细地址"
,
"address"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
),
ADDRESS
(
"详细地址"
,
"address"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
),
EXPIRYDATE
(
"许可有效期"
,
"expiryDate"
,
TechnicalParameter
.
ParamType
.
DATE
,
""
,
null
,
null
),
EXPIRYDATE
(
"许可有效期"
,
"expiryDate"
,
TechnicalParameter
.
ParamType
.
DATE
,
""
,
null
,
null
),
UNIT_TYPE
(
"企业类型"
,
"unitType"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryUnitType"
,
null
,
null
),
UNIT_TYPE
(
"企业类型"
,
"unitType"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryUnitType"
,
null
,
null
),
REGULATORY_LABELS
(
"
企业等级
"
,
"regulatoryLabels"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryDicData?type={type}"
,
"QYBQ"
,
null
),
REGULATORY_LABELS
(
"
监管标签
"
,
"regulatoryLabels"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryDicData?type={type}"
,
"QYBQ"
,
null
),
INDUSTRY_SUPERVISOR
(
"行业主管部门"
,
"industrySupervisor"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryDicData?type={type}"
,
"HYZGBM"
,
null
),
INDUSTRY_SUPERVISOR
(
"行业主管部门"
,
"industrySupervisor"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryDicData?type={type}"
,
"HYZGBM"
,
null
),
ITEM_CODE
(
"许可项目"
,
"itemCode"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryXK"
,
null
,
null
),
ITEM_CODE
(
"许可项目"
,
"itemCode"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryXK"
,
null
,
null
),
SUB_ITEM_CODE
(
"许可子项目"
,
"subItemCode"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryXK?type={type}"
,
null
,
"itemCode"
),
SUB_ITEM_CODE
(
"许可子项目"
,
"subItemCode"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryXK?type={type}"
,
null
,
"itemCode"
),
...
...
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 @
2c6e060f
...
@@ -17,11 +17,12 @@ public enum DataQualityScoreEnum {
...
@@ -17,11 +17,12 @@ public enum DataQualityScoreEnum {
* *设备等级
* *设备等级
*/
*/
I
(
"一级(
只有设备名称)"
,
"3
"
),
I
(
"一级(
使用登记证信息齐全)"
,
"一级"
,
"1
"
),
II
(
"二级(只有设备名称和使用登记证编号)"
,
"2"
),
II
(
"二级(只有设备名称和使用登记证编号)"
,
"二级"
,
"2"
),
III
(
"三级(
使用登记证信息齐全)"
,
"1
"
);
III
(
"三级(
只有设备名称)"
,
"三级"
,
"3
"
);
private
String
name
;
private
String
name
;
private
String
label
;
private
String
code
;
private
String
code
;
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
public
static
Map
<
String
,
String
>
getName
=
new
HashMap
<>();
...
@@ -47,10 +48,10 @@ public enum DataQualityScoreEnum {
...
@@ -47,10 +48,10 @@ public enum DataQualityScoreEnum {
return
jsonArray
;
return
jsonArray
;
}
}
public
static
String
get
Name
ByCode
(
String
code
)
{
public
static
String
get
Label
ByCode
(
String
code
)
{
for
(
DataQualityScoreEnum
e
:
EnumSet
.
allOf
(
DataQualityScoreEnum
.
class
))
{
for
(
DataQualityScoreEnum
e
:
EnumSet
.
allOf
(
DataQualityScoreEnum
.
class
))
{
if
(
e
.
getCode
().
equals
(
code
)){
if
(
e
.
getCode
().
equals
(
code
)){
return
e
.
get
Name
();
return
e
.
get
Label
();
}
}
}
}
return
null
;
return
null
;
...
...
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/java/com/yeejoin/amos/boot/module/statistics/api/enums/EquipAdvanceSearchEnum.java
View file @
2c6e060f
...
@@ -27,6 +27,7 @@ public enum EquipAdvanceSearchEnum {
...
@@ -27,6 +27,7 @@ public enum EquipAdvanceSearchEnum {
// IS_SUPERVISORY_CODE("赋码状态", "IS_SUPERVISORY_CODE", null,"/statistics/comprehensiveStatisticalAnalysis/select/queryIsSupervisoryCode",null,null),
// IS_SUPERVISORY_CODE("赋码状态", "IS_SUPERVISORY_CODE", null,"/statistics/comprehensiveStatisticalAnalysis/select/queryIsSupervisoryCode",null,null),
DATA_QUALITY_SCORE
(
"数据完整性"
,
"DATA_QUALITY_SCORE"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryDataQualityScore"
,
null
,
null
),
DATA_QUALITY_SCORE
(
"数据完整性"
,
"DATA_QUALITY_SCORE"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryDataQualityScore"
,
null
,
null
),
USE_DATE
(
"使用年限"
,
"USE_DATE"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryUscDate"
,
null
,
null
),
USE_DATE
(
"使用年限"
,
"USE_DATE"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryUscDate"
,
null
,
null
),
REGISTER_STATUS
(
"登记状态"
,
"registerStatus"
,
null
,
"/statistics/comprehensiveStatisticalAnalysis/select/queryRegisterStatus"
,
null
,
null
),
// UNIT_TYPE("所属单位类型", "unitType", null,"/statistics/comprehensiveStatisticalAnalysis/select/queryUnitType",null,null),
// UNIT_TYPE("所属单位类型", "unitType", null,"/statistics/comprehensiveStatisticalAnalysis/select/queryUnitType",null,null),
USC_UNIT_NAME
(
"所属单位名称"
,
"USC_UNIT_NAME"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
),
USC_UNIT_NAME
(
"所属单位名称"
,
"USC_UNIT_NAME"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
),
PRODUCE_UNIT_NAME
(
"制造单位名称"
,
"PRODUCE_UNIT_NAME"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
),
PRODUCE_UNIT_NAME
(
"制造单位名称"
,
"PRODUCE_UNIT_NAME"
,
TechnicalParameter
.
ParamType
.
STRING
,
""
,
null
,
null
),
...
...
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 @
2c6e060f
...
@@ -292,6 +292,17 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
...
@@ -292,6 +292,17 @@ public class ComprehensiveStatisticalAnalysisController extends BaseController {
* @return
* @return
*/
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/select/queryRegisterStatus"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"高级搜索登记状态"
,
notes
=
"高级搜索登记状态"
)
public
ResponseModel
<
JSONArray
>
queryRegisterStatus
()
{
return
ResponseHelper
.
buildResponse
(
statisticalAnalysisService
.
queryRegisterStatus
());
}
/**
* @param
* @return
*/
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@GetMapping
(
value
=
"/select/queryUscDate"
)
@GetMapping
(
value
=
"/select/queryUscDate"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"高级搜索使用年限"
,
notes
=
"高级搜索使用年限"
)
@ApiOperation
(
httpMethod
=
"GET"
,
value
=
"高级搜索使用年限"
,
notes
=
"高级搜索使用年限"
)
public
ResponseModel
<
JSONArray
>
queryUscDate
()
{
public
ResponseModel
<
JSONArray
>
queryUscDate
()
{
...
...
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 @
2c6e060f
...
@@ -728,6 +728,22 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -728,6 +728,22 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
}
}
});
});
boolMust
.
must
(
queryBuilder
.
build
());
boolMust
.
must
(
queryBuilder
.
build
());
}
else
if
(
k
.
equals
(
"registerStatus"
))
{
EnhancedDynamicQueryBuilder
enhancedDynamicQueryBuilder
=
new
EnhancedDynamicQueryBuilder
();
((
JSONArray
)
v
).
forEach
(
item
->
{
BoolQueryBuilder
queryBuilder
=
QueryBuilders
.
boolQuery
();
if
(
"1"
.
equals
(
item
))
{
queryBuilder
.
must
(
QueryBuilders
.
termsQuery
(
"IS_INTO_MANAGEMENT"
,
Boolean
.
TRUE
))
.
must
(
QueryBuilders
.
existsQuery
(
"USE_ORG_CODE"
));
}
else
{
queryBuilder
.
should
(
QueryBuilders
.
boolQuery
().
mustNot
(
QueryBuilders
.
existsQuery
(
"IS_INTO_MANAGEMENT"
)))
.
should
(
QueryBuilders
.
matchQuery
(
"IS_INTO_MANAGEMENT"
,
Boolean
.
FALSE
))
.
should
(
QueryBuilders
.
boolQuery
().
mustNot
(
QueryBuilders
.
existsQuery
(
"USE_ORG_CODE"
)))
.
minimumShouldMatch
(
1
);
}
enhancedDynamicQueryBuilder
.
add
(
queryBuilder
,
or
);
});
boolMust
.
must
(
enhancedDynamicQueryBuilder
.
build
());
}
else
if
(
k
.
equals
(
"PRODUCE_DATE"
)
||
k
.
equals
(
"issueDate"
)
||
k
.
equals
(
"designDate"
)
||
k
.
equals
(
"nextInspectDate"
)
||
k
.
equals
(
"USE_DATE"
))
{
}
else
if
(
k
.
equals
(
"PRODUCE_DATE"
)
||
k
.
equals
(
"issueDate"
)
||
k
.
equals
(
"designDate"
)
||
k
.
equals
(
"nextInspectDate"
)
||
k
.
equals
(
"USE_DATE"
))
{
field
=
k
.
equals
(
"nextInspectDate"
)
?
"NEXT_INSPECT_DATE"
:
k
;
field
=
k
.
equals
(
"nextInspectDate"
)
?
"NEXT_INSPECT_DATE"
:
k
;
JSONArray
dates
=
(
JSONArray
)
v
;
JSONArray
dates
=
(
JSONArray
)
v
;
...
@@ -867,7 +883,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -867,7 +883,7 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
JSONObject
dto
=
jsonObject
.
getJSONObject
(
"sourceAsMap"
);
JSONObject
dto
=
jsonObject
.
getJSONObject
(
"sourceAsMap"
);
dto
.
put
(
"record"
,
dto
.
get
(
"SEQUENCE_NBR"
));
dto
.
put
(
"record"
,
dto
.
get
(
"SEQUENCE_NBR"
));
dto
.
put
(
"equipAddress"
,
dto
.
get
(
"USE_PLACE"
)
+
"/"
+
dto
.
get
(
"ADDRESS"
));
dto
.
put
(
"equipAddress"
,
dto
.
get
(
"USE_PLACE"
)
+
"/"
+
dto
.
get
(
"ADDRESS"
));
String
dataQualityScore
=
ObjectUtils
.
isEmpty
(
dto
.
get
(
"DATA_QUALITY_SCORE"
))
?
null
:
DataQualityScoreEnum
.
get
Name
ByCode
(
dto
.
get
(
"DATA_QUALITY_SCORE"
).
toString
());
String
dataQualityScore
=
ObjectUtils
.
isEmpty
(
dto
.
get
(
"DATA_QUALITY_SCORE"
))
?
null
:
DataQualityScoreEnum
.
get
Label
ByCode
(
dto
.
get
(
"DATA_QUALITY_SCORE"
).
toString
());
dto
.
put
(
"DATA_QUALITY_SCORE"
,
dataQualityScore
);
dto
.
put
(
"DATA_QUALITY_SCORE"
,
dataQualityScore
);
dto
.
put
(
"WHETHER_VEHICLE_CYLINDER"
,
ObjectUtils
.
isEmpty
(
dto
.
get
(
"WHETHER_VEHICLE_CYLINDER"
))
?
""
:
"1"
.
equals
(
dto
.
get
(
"WHETHER_VEHICLE_CYLINDER"
))
?
"是"
:
"否"
);
dto
.
put
(
"WHETHER_VEHICLE_CYLINDER"
,
ObjectUtils
.
isEmpty
(
dto
.
get
(
"WHETHER_VEHICLE_CYLINDER"
))
?
""
:
"1"
.
equals
(
dto
.
get
(
"WHETHER_VEHICLE_CYLINDER"
))
?
"是"
:
"否"
);
dto
.
put
(
"WHETHER_SKID_MOUNTED_PRESSURE_VESSEL"
,
ObjectUtils
.
isEmpty
(
dto
.
get
(
"WHETHER_SKID_MOUNTED_PRESSURE_VESSEL"
))
?
""
:
"1"
.
equals
(
dto
.
get
(
"WHETHER_SKID_MOUNTED_PRESSURE_VESSEL"
))
?
"是"
:
"否"
);
dto
.
put
(
"WHETHER_SKID_MOUNTED_PRESSURE_VESSEL"
,
ObjectUtils
.
isEmpty
(
dto
.
get
(
"WHETHER_SKID_MOUNTED_PRESSURE_VESSEL"
))
?
""
:
"1"
.
equals
(
dto
.
get
(
"WHETHER_SKID_MOUNTED_PRESSURE_VESSEL"
))
?
"是"
:
"否"
);
...
@@ -1588,6 +1604,26 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -1588,6 +1604,26 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
builder
.
add
(
QueryBuilders
.
matchQuery
(
value
.
toString
(),
"0"
),
isOr
);
builder
.
add
(
QueryBuilders
.
matchQuery
(
value
.
toString
(),
"0"
),
isOr
);
}
}
}
}
}
else
if
(
field
.
equals
(
"registerStatus"
))
{
BoolQueryBuilder
registerQuery
=
QueryBuilders
.
boolQuery
().
must
(
QueryBuilders
.
termsQuery
(
"IS_INTO_MANAGEMENT"
,
Boolean
.
TRUE
))
.
must
(
existsQuery
(
"USE_ORG_CODE"
));
BoolQueryBuilder
noRegisterQuery
=
QueryBuilders
.
boolQuery
().
should
(
QueryBuilders
.
boolQuery
().
mustNot
(
existsQuery
(
"IS_INTO_MANAGEMENT"
)))
.
should
(
QueryBuilders
.
matchQuery
(
"IS_INTO_MANAGEMENT"
,
Boolean
.
FALSE
))
.
should
(
QueryBuilders
.
boolQuery
().
mustNot
(
existsQuery
(
"USE_ORG_CODE"
)))
.
minimumShouldMatch
(
1
);
if
(
itemCondition
.
equals
(
"eq"
)
||
itemCondition
.
equals
(
"in"
))
{
if
(
value
.
equals
(
"1"
))
{
builder
.
add
(
registerQuery
,
isOr
);
}
else
{
builder
.
add
(
noRegisterQuery
,
isOr
);
}
}
else
{
if
(
value
.
equals
(
"1"
))
{
builder
.
add
(
noRegisterQuery
,
isOr
);
}
else
{
builder
.
add
(
registerQuery
,
isOr
);
}
}
}
}
}
}
...
@@ -2279,4 +2315,24 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -2279,4 +2315,24 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
}
}
return
qzOrTank
;
return
qzOrTank
;
}
}
public
JSONArray
queryRegisterStatus
()
{
//是否车用气瓶
JSONArray
registerStatus
=
new
JSONArray
();
for
(
int
i
=
0
;
i
<
2
;
i
++)
{
JSONObject
object
=
new
JSONObject
();
if
(
0
==
i
)
{
object
.
put
(
"key"
,
"0"
);
object
.
put
(
"value"
,
"0"
);
object
.
put
(
"label"
,
"未登记"
);
}
else
{
object
.
put
(
"key"
,
"1"
);
object
.
put
(
"value"
,
"1"
);
object
.
put
(
"label"
,
"已登记"
);
}
registerStatus
.
add
(
object
);
}
return
registerStatus
;
}
}
}
\ No newline at end of file
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