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
c4135f71
Commit
c4135f71
authored
Dec 18, 2024
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.压力管道编辑保存时同步更新管道es的装置名称、装置id
parent
3d398870
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
0 deletions
+24
-0
ESEquipmentCategoryDto.java
...os/boot/module/common/api/dto/ESEquipmentCategoryDto.java
+6
-0
BatchDataChangeProcessStrategy.java
...e/jg/biz/service/impl/BatchDataChangeProcessStrategy.java
+2
-0
EquipChangeDataUpdateService.java
...ule/jg/biz/service/impl/EquipChangeDataUpdateService.java
+12
-0
PieLineDataChangeServiceImpl.java
...ule/jg/biz/service/impl/PieLineDataChangeServiceImpl.java
+4
-0
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/dto/ESEquipmentCategoryDto.java
View file @
c4135f71
...
@@ -173,4 +173,10 @@ public class ESEquipmentCategoryDto {
...
@@ -173,4 +173,10 @@ public class ESEquipmentCategoryDto {
@Field
(
type
=
FieldType
.
Text
)
@Field
(
type
=
FieldType
.
Text
)
private
String
INFORMATION_SITUATION
;
private
String
INFORMATION_SITUATION
;
/**
* 工程装置id(工业管道使用)
*/
@Field
(
type
=
FieldType
.
Keyword
)
private
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 @
c4135f71
...
@@ -86,6 +86,8 @@ public class BatchDataChangeProcessStrategy implements IChangeDataProcessStrateg
...
@@ -86,6 +86,8 @@ public class BatchDataChangeProcessStrategy implements IChangeDataProcessStrateg
String
record
=
item
.
getRecord
();
String
record
=
item
.
getRecord
();
// 设计信息更新
// 设计信息更新
pieLineDataChangeService
.
saveDesignForPieLine
(
record
,
allChangeColumns
,
item
);
pieLineDataChangeService
.
saveDesignForPieLine
(
record
,
allChangeColumns
,
item
);
// 更新es的冗余的管道名称字段
pieLineDataChangeService
.
updateEs
(
record
,
projectContraptionChangeDataDto
);
// 技术参数入库保存
// 技术参数入库保存
TechParamsPipelineChangeFieldDto
paramsPipelineChangeFieldDto
=
new
TechParamsPipelineChangeFieldDto
();
TechParamsPipelineChangeFieldDto
paramsPipelineChangeFieldDto
=
new
TechParamsPipelineChangeFieldDto
();
BeanUtil
.
copyProperties
(
item
,
paramsPipelineChangeFieldDto
,
false
);
BeanUtil
.
copyProperties
(
item
,
paramsPipelineChangeFieldDto
,
false
);
...
...
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 @
c4135f71
...
@@ -137,6 +137,18 @@ public class EquipChangeDataUpdateService {
...
@@ -137,6 +137,18 @@ public class EquipChangeDataUpdateService {
}
}
}
}
public
void
updateRegisterEsDataPieLine
(
String
record
,
ProjectContraptionChangeDataDto
registerChangeDataDto
)
{
// es 数据更新
Optional
<
ESEquipmentCategoryDto
>
optional
=
esEquipmentCategory
.
findById
(
record
);
if
(
optional
.
isPresent
())
{
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
optional
.
get
();
esEquipmentCategoryDto
.
setPROJECT_CONTRAPTION
(
registerChangeDataDto
.
getProjectContraption
());
// 冗余更新 正常 应该是在加设备时写入
esEquipmentCategoryDto
.
setPROJECT_CONTRAPTION_ID
(
registerChangeDataDto
.
getProjectContraptionId
())
;
esEquipmentCategory
.
save
(
esEquipmentCategoryDto
);
}
}
private
EquipmentCategory
getEquipmentCategory
(
EquipRegisterChangeDataDto
registerChangeDataDto
)
{
private
EquipmentCategory
getEquipmentCategory
(
EquipRegisterChangeDataDto
registerChangeDataDto
)
{
return
equipmentCategoryMapper
.
selectOne
(
new
LambdaQueryWrapper
<
EquipmentCategory
>().
eq
(
EquipmentCategory:
:
getCode
,
registerChangeDataDto
.
getEquDefine
()));
return
equipmentCategoryMapper
.
selectOne
(
new
LambdaQueryWrapper
<
EquipmentCategory
>().
eq
(
EquipmentCategory:
:
getCode
,
registerChangeDataDto
.
getEquDefine
()));
}
}
...
...
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 @
c4135f71
...
@@ -63,4 +63,8 @@ public class PieLineDataChangeServiceImpl {
...
@@ -63,4 +63,8 @@ public class PieLineDataChangeServiceImpl {
// 2.更新管道的设计单位名称
// 2.更新管道的设计单位名称
equipChangeDataUpdateService
.
updatePieLineDesignData
(
record
,
pieLineDesignChangeDataDto
);
equipChangeDataUpdateService
.
updatePieLineDesignData
(
record
,
pieLineDesignChangeDataDto
);
}
}
public
void
updateEs
(
String
record
,
ProjectContraptionChangeDataDto
projectContraptionChangeDataDto
)
{
equipChangeDataUpdateService
.
updateRegisterEsDataPieLine
(
record
,
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