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
e44d26d5
Commit
e44d26d5
authored
Sep 01, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修改大屏跳转设备列表,一类二类没有过滤气瓶管道
2、修改大屏跳转设备列表,其他过滤失败问题
parent
357cbd37
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
0 deletions
+32
-0
TzsCustomFilterMapper.java
...t/module/statistics/api/mapper/TzsCustomFilterMapper.java
+2
-0
TzsCustomFilterMapper.xml
...s-api/src/main/resources/mapper/TzsCustomFilterMapper.xml
+8
-0
ComprehensiveStatisticalAnalysisServiceImpl.java
...ice/impl/ComprehensiveStatisticalAnalysisServiceImpl.java
+22
-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/mapper/TzsCustomFilterMapper.java
View file @
e44d26d5
...
@@ -36,4 +36,6 @@ public interface TzsCustomFilterMapper extends BaseMapper<TzsCustomFilter> {
...
@@ -36,4 +36,6 @@ public interface TzsCustomFilterMapper extends BaseMapper<TzsCustomFilter> {
void
setOrgBranchCodeIsNullByRecords
(
@Param
(
"records"
)
List
<
String
>
records
);
void
setOrgBranchCodeIsNullByRecords
(
@Param
(
"records"
)
List
<
String
>
records
);
void
updateOrgBranchCodeByRecords
(
@Param
(
"dataList"
)
List
<
Map
<
String
,
Object
>>
dataList
);
void
updateOrgBranchCodeByRecords
(
@Param
(
"dataList"
)
List
<
Map
<
String
,
Object
>>
dataList
);
List
<
String
>
getSubCodes
(
String
code
);
}
}
amos-boot-system-tzs/amos-boot-module-statistics/amos-boot-module-statistics-api/src/main/resources/mapper/TzsCustomFilterMapper.xml
View file @
e44d26d5
...
@@ -87,6 +87,14 @@
...
@@ -87,6 +87,14 @@
AND ibjri."EQU_CATEGORY" = #{code}
AND ibjri."EQU_CATEGORY" = #{code}
</if>
</if>
</select>
</select>
<select
id=
"getSubCodes"
resultType=
"java.lang.String"
>
SELECT
code
FROM
tz_equipment_category
WHERE
is_delete = 0 AND parent_id = ( SELECT id FROM tz_equipment_category where code = #{code} )
</select>
<update
id=
"setOrgBranchCodeIsNullByRecords"
>
<update
id=
"setOrgBranchCodeIsNullByRecords"
>
update amos_tzs_biz.idx_biz_jg_supervision_info set "ORG_BRANCH_CODE" = null where "RECORD" in
update amos_tzs_biz.idx_biz_jg_supervision_info set "ORG_BRANCH_CODE" = null where "RECORD" in
...
...
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 @
e44d26d5
...
@@ -886,6 +886,28 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
...
@@ -886,6 +886,28 @@ public class ComprehensiveStatisticalAnalysisServiceImpl {
// 筛选
// 筛选
if
(!
ObjectUtils
.
isEmpty
(
filter
.
get
(
"filterParams"
)))
{
if
(!
ObjectUtils
.
isEmpty
(
filter
.
get
(
"filterParams"
)))
{
filterParams
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
filter
.
get
(
"filterParams"
)));
filterParams
=
JSONObject
.
parseObject
(
JSONObject
.
toJSONString
(
filter
.
get
(
"filterParams"
)));
if
(
filterParams
.
containsKey
(
"dp_filter_business_type"
)
&&
filterParams
.
containsKey
(
"DATA_QUALITY_SCORE"
)
&&
!
filterParams
.
containsKey
(
"EQU_LIST"
))
{
List
<
String
>
equListCode
=
Arrays
.
asList
(
"1000"
,
"2000"
,
"3000"
,
"4000"
,
"5000"
,
"6000"
,
"9000"
);
boolMust
.
must
(
QueryBuilders
.
termsQuery
(
"EQU_LIST_CODE"
,
equListCode
));
boolMust
.
mustNot
(
QueryBuilders
.
termQuery
(
"EQU_CATEGORY_CODE"
,
"2300"
));
}
if
(
filterParams
.
containsKey
(
"other"
))
{
if
(!
filterParams
.
containsKey
(
"EQU_LIST"
))
{
boolMust
.
mustNot
(
QueryBuilders
.
termsQuery
(
"EQU_LIST_CODE"
,
equList
));
}
else
if
(!
filterParams
.
containsKey
(
"EQU_CATEGORY"
))
{
JSONArray
jsonArray
=
(
JSONArray
)
filterParams
.
get
(
"EQU_LIST"
);
if
(!
ObjectUtils
.
isEmpty
(
jsonArray
))
{
List
<
String
>
subCodes
=
tzsCustomFilterMapper
.
getSubCodes
(
String
.
valueOf
(
jsonArray
.
get
(
0
)));
boolMust
.
mustNot
(
QueryBuilders
.
termsQuery
(
"EQU_CATEGORY_CODE"
,
subCodes
));
}
}
else
if
(!
filterParams
.
containsKey
(
"EQU_DEFINE"
))
{
JSONArray
jsonArray
=
(
JSONArray
)
filterParams
.
get
(
"EQU_CATEGORY"
);
if
(!
ObjectUtils
.
isEmpty
(
jsonArray
))
{
List
<
String
>
subCodes
=
tzsCustomFilterMapper
.
getSubCodes
(
String
.
valueOf
(
jsonArray
.
get
(
0
)));
boolMust
.
mustNot
(
QueryBuilders
.
termsQuery
(
"EQU_DEFINE_CODE"
,
subCodes
));
}
}
}
String
filterType
=
filter
.
getString
(
"filterType"
);
String
filterType
=
filter
.
getString
(
"filterType"
);
// 组装查询条件
// 组装查询条件
getEquipmentBoolQueryBuilder
(
boolMust
,
filterParams
,
filterType
);
getEquipmentBoolQueryBuilder
(
boolMust
,
filterParams
,
filterType
);
...
...
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