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
99ca7203
Commit
99ca7203
authored
Jan 22, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.刷管道历史数据接口,增加装置名称记录到use_info
parent
b0543304
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
4 deletions
+10
-4
DataHandlerServiceImpl.java
...ot/module/jg/biz/service/impl/DataHandlerServiceImpl.java
+10
-4
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 @
99ca7203
...
...
@@ -666,6 +666,7 @@ public class DataHandlerServiceImpl {
}
// 更新设备es的装置id、使用信息的装置id
projectContraptionIdRecordsMap
.
forEach
((
k
,
v
)->{
IdxBizJgProjectContraption
idxBizJgProjectContraption
=
projectContraptionService
.
getById
(
k
);
Iterable
<
ESEquipmentCategoryDto
>
equipmentCategories
=
esEquipmentCategory
.
findAllById
(
v
);
equipmentCategories
.
forEach
(
e
->
e
.
setProjectContraptionId
(
k
+
""
));
esEquipmentCategory
.
saveAll
(
equipmentCategories
);
...
...
@@ -674,6 +675,7 @@ public class DataHandlerServiceImpl {
LambdaUpdateWrapper
<
IdxBizJgUseInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
u
.
getRecord
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraptionId
,
k
);
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraption
,
idxBizJgProjectContraption
.
getProjectContraption
());
useInfoService
.
update
(
updateWrapper
);
});
});
...
...
@@ -870,10 +872,14 @@ public class DataHandlerServiceImpl {
eqs
.
forEach
(
eq
->{
Optional
<
ESEquipmentCategoryDto
>
equInfosWithEs
=
esEquipmentCategory
.
findById
(
eq
.
getEquId
());
equInfosWithEs
.
ifPresent
(
equInfoEs
->
{
LambdaUpdateWrapper
<
IdxBizJgUseInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
equInfoEs
.
getSEQUENCE_NBR
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraptionId
,
equInfoEs
.
getProjectContraptionId
());
useInfoService
.
update
(
updateWrapper
);
if
(
StringUtils
.
isNotEmpty
(
equInfoEs
.
getProjectContraptionId
())){
IdxBizJgProjectContraption
idxBizJgProjectContraption
=
projectContraptionService
.
getById
(
equInfoEs
.
getProjectContraptionId
());
LambdaUpdateWrapper
<
IdxBizJgUseInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
eq
(
IdxBizJgUseInfo:
:
getRecord
,
equInfoEs
.
getSEQUENCE_NBR
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraptionId
,
idxBizJgProjectContraption
.
getSequenceNbr
());
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getProjectContraption
,
idxBizJgProjectContraption
.
getProjectContraption
());
useInfoService
.
update
(
updateWrapper
);
}
});
});
List
<
JgInstallationNoticeEq
>
eqsAfter
=
jgInstallationNoticeEqMapper
.
selectPCIdNeErrorPieLineInUseInfo
();
...
...
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