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
f727eeb5
Commit
f727eeb5
authored
Oct 31, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):删除无用方法
parent
8c174122
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
32 deletions
+2
-32
DataHandlerController.java
.../boot/module/jg/biz/controller/DataHandlerController.java
+1
-1
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+1
-31
No files found.
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/controller/DataHandlerController.java
View file @
f727eeb5
...
@@ -388,7 +388,7 @@ public class DataHandlerController extends BaseController {
...
@@ -388,7 +388,7 @@ public class DataHandlerController extends BaseController {
@PostMapping
(
value
=
"/handleDataQualityScore"
)
@PostMapping
(
value
=
"/handleDataQualityScore"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"修复es中未正常生成数据等级的数据"
,
notes
=
"修复es中未正常生成数据等级的数据"
)
@ApiOperation
(
httpMethod
=
"POST"
,
value
=
"修复es中未正常生成数据等级的数据"
,
notes
=
"修复es中未正常生成数据等级的数据"
)
public
ResponseModel
<
String
>
handleDataQualityScore
()
{
public
ResponseModel
<
String
>
handleDataQualityScore
()
{
return
ResponseHelper
.
buildResponse
(
dataHandlerService
.
handleDataQualityScore
2
());
return
ResponseHelper
.
buildResponse
(
dataHandlerService
.
handleDataQualityScore
());
}
}
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
@TycloudOperation
(
ApiLevel
=
UserType
.
AGENCY
)
...
...
amos-boot-system-tzs/amos-boot-module-jg/amos-boot-module-jg-biz/src/main/java/com/yeejoin/amos/boot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
View file @
f727eeb5
...
@@ -2324,38 +2324,8 @@ public class DataHandlerServiceImpl {
...
@@ -2324,38 +2324,8 @@ public class DataHandlerServiceImpl {
return
weatherTankFieldPatcher
.
patchBatchData
();
return
weatherTankFieldPatcher
.
patchBatchData
();
}
}
public
String
handleDataQualityScore
()
{
log
.
info
(
"处理数据质量评分开始"
);
AtomicLong
total
=
new
AtomicLong
(
0L
);
try
{
BoolQueryBuilder
boolQuery
=
QueryBuilders
.
boolQuery
();
buildQuery
(
boolQuery
);
esSearchService
.
searchResponseInBatch
(
IDX_BIZ_VIEW_JG_ALL
,
boolQuery
,
2000
,
searchHits
->
{
List
<
ESEquipmentCategoryDto
>
esEquipmentCategoryList
=
searchHits
.
stream
().
map
(
searchHit
->
JSONObject
.
parseObject
(
searchHit
.
getSourceAsString
(),
ESEquipmentCategoryDto
.
class
)).
collect
(
Collectors
.
toList
());
// 数据库查询设备数据等级
if
(!
ValidationUtil
.
isEmpty
(
esEquipmentCategoryList
))
{
List
<
String
>
equipRecords
=
esEquipmentCategoryList
.
stream
().
map
(
ESEquipmentCategoryDto:
:
getSEQUENCE_NBR
).
collect
(
Collectors
.
toList
());
List
<
IdxBizJgUseInfo
>
baseEnterpriseInfoList
=
useInfoService
.
list
(
new
LambdaQueryWrapper
<
IdxBizJgUseInfo
>().
select
(
IdxBizJgUseInfo:
:
getRecord
,
IdxBizJgUseInfo:
:
getDataQualityScore
).
in
(
IdxBizJgUseInfo:
:
getRecord
,
equipRecords
));
if
(!
ValidationUtil
.
isEmpty
(
baseEnterpriseInfoList
))
{
Map
<
String
,
Integer
>
equipDataQualityScoreMap
=
baseEnterpriseInfoList
.
stream
().
collect
(
Collectors
.
toMap
(
IdxBizJgUseInfo:
:
getRecord
,
IdxBizJgUseInfo:
:
getDataQualityScore
));
esEquipmentCategoryList
.
forEach
(
x
->
x
.
setDataQualityScore
(
equipDataQualityScoreMap
.
get
(
x
.
getSEQUENCE_NBR
())));
}
}
esEquipmentCategory
.
saveAll
(
esEquipmentCategoryList
);
total
.
addAndGet
(
esEquipmentCategoryList
.
size
());
});
}
catch
(
Exception
e
)
{
throw
new
RuntimeException
(
e
);
}
log
.
info
(
"处理数据质量评分结束,更新{}条设备"
,
total
.
get
());
return
"success"
;
}
@Transactional
(
rollbackFor
=
Exception
.
class
)
@Transactional
(
rollbackFor
=
Exception
.
class
)
public
String
handleDataQualityScore
2
()
{
public
String
handleDataQualityScore
()
{
log
.
info
(
"处理数据质量评分开始"
);
log
.
info
(
"处理数据质量评分开始"
);
AtomicLong
total
=
new
AtomicLong
(
0L
);
AtomicLong
total
=
new
AtomicLong
(
0L
);
try
{
try
{
...
...
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