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
35834e00
Commit
35834e00
authored
Aug 19, 2025
by
tianyiming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug修改
parent
d4ca4d97
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
11 deletions
+15
-11
JgUseRegistrationManageMapper.xml
...c/main/resources/mapper/JgUseRegistrationManageMapper.xml
+3
-0
JGDPStatisticsServiceImpl.java
...statistcs/biz/service/impl/JGDPStatisticsServiceImpl.java
+12
-11
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-api/src/main/resources/mapper/JgUseRegistrationManageMapper.xml
View file @
35834e00
...
@@ -335,6 +335,9 @@
...
@@ -335,6 +335,9 @@
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
<if
test=
"dto.equListCode != null and dto.equListCode != ''"
>
and tjurm.equ_list_code = #{dto.equListCode}
and tjurm.equ_list_code = #{dto.equListCode}
</if>
</if>
<if
test=
"dto.superviseOrgCode != null and dto.superviseOrgCode != ''"
>
and pc.org_code like concat (#{dto.superviseOrgCode}, '%')
</if>
<if
test=
"dto.equCategory != null and dto.equCategory != ''"
>
<if
test=
"dto.equCategory != null and dto.equCategory != ''"
>
and tjurm.equ_category = #{dto.equCategory}
and tjurm.equ_category = #{dto.equCategory}
</if>
</if>
...
...
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/JGDPStatisticsServiceImpl.java
View file @
35834e00
...
@@ -282,6 +282,8 @@ public class JGDPStatisticsServiceImpl {
...
@@ -282,6 +282,8 @@ public class JGDPStatisticsServiceImpl {
private
final
ComprehensiveStatisticalAnalysisServiceImpl
statisticalAnalysisService
;
private
final
ComprehensiveStatisticalAnalysisServiceImpl
statisticalAnalysisService
;
DateTimeFormatter
formatter
=
DateTimeFormatter
.
ofPattern
(
"yyyy-MM-dd"
);
private
List
<
LegendDataDto
>
buildLegendDataList
()
{
private
List
<
LegendDataDto
>
buildLegendDataList
()
{
List
<
LegendDataDto
>
legendDataDtos
=
new
ArrayList
<>();
List
<
LegendDataDto
>
legendDataDtos
=
new
ArrayList
<>();
...
@@ -720,14 +722,14 @@ public class JGDPStatisticsServiceImpl {
...
@@ -720,14 +722,14 @@ public class JGDPStatisticsServiceImpl {
private
long
countEquipNumFromES
(
DPFilterParamDto
dpFilterParamDto
,
Integer
...
states
)
{
private
long
countEquipNumFromES
(
DPFilterParamDto
dpFilterParamDto
,
Integer
...
states
)
{
long
num
;
long
num
;
CountRequest
request
=
new
CountRequest
();
CountRequest
request
=
new
CountRequest
();
request
.
indices
(
"idx_biz_view_jg_all"
);
request
.
indices
(
StatisticalAnalysisEnum
.
equip
.
getKey
()
);
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
==
null
)
{
if
(
orgCode
==
null
)
{
return
0L
;
return
0L
;
}
}
// 按照管辖机构区域信息模糊查询
// 按照管辖机构区域信息模糊查询
boolMust
.
must
(
QueryBuilders
.
wildcardQuery
(
"ORG_BRANCH_CODE.keyword"
,
QueryParser
.
escape
(
orgCode
)
+
"*"
));
boolMust
.
must
(
QueryBuilders
.
prefixQuery
(
"ORG_BRANCH_CODE"
,
orgCode
));
//已赋码
//已赋码
boolMust
.
must
(
QueryBuilders
.
existsQuery
(
"SUPERVISORY_CODE"
));
boolMust
.
must
(
QueryBuilders
.
existsQuery
(
"SUPERVISORY_CODE"
));
boolMust
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
"null"
));
boolMust
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
"null"
));
...
@@ -789,25 +791,22 @@ public class JGDPStatisticsServiceImpl {
...
@@ -789,25 +791,22 @@ public class JGDPStatisticsServiceImpl {
private
Long
staticsCenterMapCountDateTemporary
(
DPFilterParamDto
dpFilterParamDto
)
{
private
Long
staticsCenterMapCountDateTemporary
(
DPFilterParamDto
dpFilterParamDto
)
{
long
num
;
long
num
;
CountRequest
request
=
new
CountRequest
();
CountRequest
request
=
new
CountRequest
();
request
.
indices
(
"idx_biz_view_jg_all"
);
request
.
indices
(
StatisticalAnalysisEnum
.
equip
.
getKey
()
);
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
==
null
)
{
if
(
orgCode
==
null
)
{
return
0L
;
return
0L
;
}
}
// 按照管辖机构区域信息模糊查询
// 按照管辖机构区域信息模糊查询
boolMust
.
must
(
QueryBuilders
.
wildcardQuery
(
"ORG_BRANCH_CODE.keyword"
,
QueryParser
.
escape
(
orgCode
)
+
"*"
));
boolMust
.
must
(
QueryBuilders
.
prefixQuery
(
"ORG_BRANCH_CODE"
,
orgCode
));
//已赋码
//已赋码
boolMust
.
must
(
QueryBuilders
.
existsQuery
(
"SUPERVISORY_CODE"
));
boolMust
.
must
(
QueryBuilders
.
existsQuery
(
"SUPERVISORY_CODE"
));
boolMust
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
"null"
));
boolMust
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
"null"
));
//状态为已认领
//状态为已认领
String
[]
status
=
{
"草稿"
,
"已拒领"
,
"待认领"
};
String
[]
status
=
{
"草稿"
,
"已拒领"
,
"待认领"
};
boolMust
.
mustNot
(
QueryBuilders
.
termsQuery
(
"STATUS"
,
Arrays
.
asList
(
status
)));
boolMust
.
mustNot
(
QueryBuilders
.
termsQuery
(
"STATUS"
,
Arrays
.
asList
(
status
)));
// 且下次检验日期大于等于当天
long
currentDayTime
=
DateUtil
.
parse
(
DateUtil
.
today
(),
"yyy-MM-dd"
).
getTime
();
// 且查询 下次检验日期 <= 当前天+30天 极为临期
// 且查询 下次检验日期 <= 当前天+30天 极为临期
long
currentDayAfter30DayTime
=
DateUtil
.
offsetDay
(
DateUtil
.
parse
(
DateUtil
.
today
(),
"yyy-MM-dd"
),
30
).
getTime
();
boolMust
.
filter
(
QueryBuilders
.
rangeQuery
(
"NEXT_INSPECT_DATE"
).
gte
(
LocalDate
.
now
().
format
(
formatter
)).
lte
(
LocalDate
.
now
().
plusDays
(
30
).
format
(
formatter
)));
boolMust
.
must
(
QueryBuilders
.
rangeQuery
(
"NEXT_INSPECT_DATE"
).
gte
(
currentDayTime
).
lte
(
currentDayAfter30DayTime
));
// 且8大类,目的去掉脏数据
// 且8大类,目的去掉脏数据
boolMust
.
must
(
QueryBuilders
.
termsQuery
(
"EQU_LIST_CODE"
,
StCommonServiceImpl
.
getEquipmentCategory
().
stream
().
map
(
EquipmentCategoryDto:
:
getCode
).
collect
(
Collectors
.
toList
())));
boolMust
.
must
(
QueryBuilders
.
termsQuery
(
"EQU_LIST_CODE"
,
StCommonServiceImpl
.
getEquipmentCategory
().
stream
().
map
(
EquipmentCategoryDto:
:
getCode
).
collect
(
Collectors
.
toList
())));
request
.
query
(
boolMust
);
request
.
query
(
boolMust
);
...
@@ -830,14 +829,14 @@ public class JGDPStatisticsServiceImpl {
...
@@ -830,14 +829,14 @@ public class JGDPStatisticsServiceImpl {
private
Long
staticsCenterMapCountDateOverdue
(
DPFilterParamDto
dpFilterParamDto
)
{
private
Long
staticsCenterMapCountDateOverdue
(
DPFilterParamDto
dpFilterParamDto
)
{
long
num
=
0
;
long
num
=
0
;
CountRequest
request
=
new
CountRequest
();
CountRequest
request
=
new
CountRequest
();
request
.
indices
(
"idx_biz_view_jg_all"
);
request
.
indices
(
StatisticalAnalysisEnum
.
equip
.
getKey
()
);
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
BoolQueryBuilder
boolMust
=
QueryBuilders
.
boolQuery
();
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
dpFilterParamDto
.
getCityCode
());
if
(
orgCode
==
null
)
{
if
(
orgCode
==
null
)
{
return
0L
;
return
0L
;
}
}
// 按照管辖机构区域信息模糊查询
// 按照管辖机构区域信息模糊查询
boolMust
.
must
(
QueryBuilders
.
wildcardQuery
(
"ORG_BRANCH_CODE.keyword"
,
QueryParser
.
escape
(
orgCode
)
+
"*"
));
boolMust
.
must
(
QueryBuilders
.
prefixQuery
(
"ORG_BRANCH_CODE"
,
orgCode
));
//已赋码
//已赋码
boolMust
.
must
(
QueryBuilders
.
existsQuery
(
"SUPERVISORY_CODE"
));
boolMust
.
must
(
QueryBuilders
.
existsQuery
(
"SUPERVISORY_CODE"
));
boolMust
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
"null"
));
boolMust
.
mustNot
(
QueryBuilders
.
termQuery
(
"SUPERVISORY_CODE"
,
"null"
));
...
@@ -3574,10 +3573,11 @@ public class JGDPStatisticsServiceImpl {
...
@@ -3574,10 +3573,11 @@ public class JGDPStatisticsServiceImpl {
return
new
Page
<>();
return
new
Page
<>();
}
}
// 默认登录监管单位orgcode过滤
// 默认登录监管单位orgcode过滤
problemModel
.
setGoverningBodyOrgCode
(
orgCode
);
if
(!
ObjectUtils
.
isEmpty
(
problemModel
.
getGoverningBodyOrgCode
()))
{
if
(!
ObjectUtils
.
isEmpty
(
problemModel
.
getGoverningBodyOrgCode
()))
{
// 筛选条件起效
// 筛选条件起效
problemModel
.
setGoverningBodyOrgCode
(
problemModel
.
getGoverningBodyOrgCode
());
problemModel
.
setGoverningBodyOrgCode
(
problemModel
.
getGoverningBodyOrgCode
());
}
else
{
problemModel
.
setGoverningBodyOrgCode
(
orgCode
);
}
}
// 使用orgCode过滤
// 使用orgCode过滤
// 将单位类型从code转化为value
// 将单位类型从code转化为value
...
@@ -3594,6 +3594,7 @@ public class JGDPStatisticsServiceImpl {
...
@@ -3594,6 +3594,7 @@ public class JGDPStatisticsServiceImpl {
public
Page
<
JgUseRegistrationManageDto
>
getRegistrationRecords
(
Page
<
JgUseRegistrationManageDto
>
page
,
JgUseRegistrationManageDto
dto
,
String
cityCode
)
{
public
Page
<
JgUseRegistrationManageDto
>
getRegistrationRecords
(
Page
<
JgUseRegistrationManageDto
>
page
,
JgUseRegistrationManageDto
dto
,
String
cityCode
)
{
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
cityCode
);
String
orgCode
=
stCommonService
.
getAndSetOrgCode
(
cityCode
);
return
jgUseRegistrationManageMapper
.
getRecords
(
page
,
dto
,
orgCode
);
return
jgUseRegistrationManageMapper
.
getRecords
(
page
,
dto
,
orgCode
);
}
}
...
...
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