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
4668c066
Commit
4668c066
authored
Dec 18, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.压力管道编辑保存时同步更新装置下的搜索管道es的装置名称
parent
4ef5bc4a
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
11 deletions
+13
-11
ESEquipmentCategory.java
.../amos/boot/module/common/api/dao/ESEquipmentCategory.java
+3
-0
BatchDataChangeProcessStrategy.java
...e/jg/biz/service/impl/BatchDataChangeProcessStrategy.java
+2
-2
EquipChangeDataUpdateService.java
...ule/jg/biz/service/impl/EquipChangeDataUpdateService.java
+6
-7
PieLineDataChangeServiceImpl.java
...ule/jg/biz/service/impl/PieLineDataChangeServiceImpl.java
+2
-2
No files found.
amos-boot-system-tzs/amos-boot-module-common/amos-boot-module-common-api/src/main/java/com/yeejoin/amos/boot/module/common/api/dao/ESEquipmentCategory.java
View file @
4668c066
...
...
@@ -5,6 +5,9 @@ import com.yeejoin.amos.boot.module.common.api.dto.ESEquipmentCategoryDto;
import
org.springframework.data.repository.PagingAndSortingRepository
;
import
org.springframework.stereotype.Repository
;
import
java.util.List
;
@Repository
public
interface
ESEquipmentCategory
extends
PagingAndSortingRepository
<
ESEquipmentCategoryDto
,
String
>
{
List
<
ESEquipmentCategoryDto
>
findAllByPROJECT_CONTRAPTION_ID
(
String
PROJECT_CONTRAPTION_ID
);
}
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/BatchDataChangeProcessStrategy.java
View file @
4668c066
...
...
@@ -86,13 +86,13 @@ public class BatchDataChangeProcessStrategy implements IChangeDataProcessStrateg
String
record
=
item
.
getRecord
();
// 设计信息更新
pieLineDataChangeService
.
saveDesignForPieLine
(
record
,
allChangeColumns
,
item
);
// 更新es的冗余的管道名称字段
pieLineDataChangeService
.
updateEs
(
record
,
projectContraptionChangeDataDto
);
// 技术参数入库保存
TechParamsPipelineChangeFieldDto
paramsPipelineChangeFieldDto
=
new
TechParamsPipelineChangeFieldDto
();
BeanUtil
.
copyProperties
(
item
,
paramsPipelineChangeFieldDto
,
false
);
commonEquipDataProcessService
.
savePieLineTechParam
(
record
,
allChangeColumns
,
paramsPipelineChangeFieldDto
);
});
// 4.更新所有管道的的冗余的管道名称字段(重点注意包括本次没做使用登记的管道也要更新)
pieLineDataChangeService
.
updateEs
(
projectContraptionChangeDataDto
);
}
else
{
// 气瓶逻辑
List
<
MultiChangeItemData
>
items
=
equips
.
toJavaList
(
MultiChangeItemData
.
class
);
// 校验
...
...
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/EquipChangeDataUpdateService.java
View file @
4668c066
...
...
@@ -137,15 +137,14 @@ public class EquipChangeDataUpdateService {
}
}
public
void
updateRegisterEsDataPieLine
(
String
record
,
ProjectContraptionChangeDataDto
registerChangeDataDto
)
{
public
void
updateRegisterEsDataPieLine
(
ProjectContraptionChangeDataDto
registerChangeDataDto
)
{
// es 数据更新
Optional
<
ESEquipmentCategoryDto
>
optional
=
esEquipmentCategory
.
findById
(
record
);
if
(
optional
.
isPresent
())
{
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
optional
.
get
();
List
<
ESEquipmentCategoryDto
>
pieLines
=
esEquipmentCategory
.
findAllByPROJECT_CONTRAPTION_ID
(
registerChangeDataDto
.
getProjectContraptionId
());
for
(
ESEquipmentCategoryDto
esEquipmentCategoryDto:
pieLines
)
{
esEquipmentCategoryDto
.
setPROJECT_CONTRAPTION
(
registerChangeDataDto
.
getProjectContraption
());
// 冗余更新 正常 应该是在加设备时写入
esEquipmentCategoryDto
.
setPROJECT_CONTRAPTION_ID
(
registerChangeDataDto
.
getProjectContraptionId
())
;
esEquipmentCategory
.
save
(
esEquipmentCategoryDto
);
}
if
(!
pieLines
.
isEmpty
()){
esEquipmentCategory
.
save
All
(
pieLines
);
}
}
...
...
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/PieLineDataChangeServiceImpl.java
View file @
4668c066
...
...
@@ -64,7 +64,7 @@ public class PieLineDataChangeServiceImpl {
equipChangeDataUpdateService
.
updatePieLineDesignData
(
record
,
pieLineDesignChangeDataDto
);
}
public
void
updateEs
(
String
record
,
ProjectContraptionChangeDataDto
projectContraptionChangeDataDto
)
{
equipChangeDataUpdateService
.
updateRegisterEsDataPieLine
(
record
,
projectContraptionChangeDataDto
);
public
void
updateEs
(
ProjectContraptionChangeDataDto
projectContraptionChangeDataDto
)
{
equipChangeDataUpdateService
.
updateRegisterEsDataPieLine
(
projectContraptionChangeDataDto
);
}
}
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