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
05a03175
Commit
05a03175
authored
Aug 25, 2025
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):删除管道导入错误问题处理
parent
2c601ae4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+9
-3
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/service/impl/DataHandlerServiceImpl.java
View file @
05a03175
...
...
@@ -2066,14 +2066,20 @@ public class DataHandlerServiceImpl {
return
map
;
}
public
Integer
deleteImportedPipelineData
(
String
uscUnitCreditCode
,
String
projectContraption
,
String
dataSource
,
boolean
isDelete
)
throws
IOException
{
public
Integer
deleteImportedPipelineData
(
String
uscUnitCreditCode
,
String
projectContraption
,
String
dataSource
,
boolean
isDelete
)
throws
IOException
{
List
<
String
>
records
=
this
.
queryImportedPipelineRecords
(
uscUnitCreditCode
,
projectContraption
,
dataSource
);
if
(
records
.
isEmpty
())
{
return
0
;
}
if
(
isDelete
)
{
superviseInfoMapper
.
deleteDataAll
(
records
);
deleteFromEs
(
records
);
int
batchSize
=
1000
;
for
(
int
i
=
0
;
i
<
records
.
size
();
i
+=
batchSize
)
{
int
end
=
Math
.
min
(
i
+
batchSize
,
records
.
size
());
List
<
String
>
batch
=
records
.
subList
(
i
,
end
);
superviseInfoMapper
.
deleteDataAll
(
batch
);
deleteFromEs
(
batch
);
}
}
return
records
.
size
();
}
...
...
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