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
eef409ce
Commit
eef409ce
authored
Jan 09, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.管道历史问题处理-es没有也刷库
parent
a2bdcc1d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+7
-7
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 @
eef409ce
...
...
@@ -912,19 +912,19 @@ public class DataHandlerServiceImpl {
List
<
PieLineEquipContraptionDto
>
eqs
=
jgInstallationNoticeEqMapper
.
selectPCIdNeErrorPieLineInUseInfo2
();
log
.
info
(
"处理前:查询管道的装置id与安装告知的装置id的不一样管道设备:{}"
,
eqs
.
size
());
eqs
.
forEach
(
eq
->{
// 1.已安装告知单据为准更新es
Optional
<
ESEquipmentCategoryDto
>
equInfosWithEs
=
esEquipmentCategory
.
findById
(
eq
.
getRecord
());
equInfosWithEs
.
ifPresent
(
equInfoEs
->
{
// 已安装告知单据为准更新es
equInfoEs
.
setProjectContraptionId
(
eq
.
getProjectContraptionId
());
equInfoEs
.
setPROJECT_CONTRAPTION
(
eq
.
getProjectContraption
());
esEquipmentCategory
.
save
(
equInfoEs
);
// 已安装告知单据为准更新use_info
LambdaUpdateWrapper
<
IdxBizJgUseInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
eq
.
getRecord
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraptionId
,
eq
.
getProjectContraptionId
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraption
,
eq
.
getProjectContraption
());
useInfoService
.
update
(
updateWrapper
);
});
// 2.已安装告知单据为准更新use_info
LambdaUpdateWrapper
<
IdxBizJgUseInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
eq
.
getRecord
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraptionId
,
eq
.
getProjectContraptionId
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraption
,
eq
.
getProjectContraption
());
useInfoService
.
update
(
updateWrapper
);
});
List
<
PieLineEquipContraptionDto
>
eqsAfter
=
jgInstallationNoticeEqMapper
.
selectPCIdNeErrorPieLineInUseInfo2
();
log
.
info
(
"处理后:查询管道装置id与安装告知的装置id的不一样管道设备:{}"
,
eqsAfter
.
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