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
150ce904
Commit
150ce904
authored
Jan 15, 2025
by
hezhuozhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
压力管道-公用、长输管道告知页面调整
parent
5e1dcc99
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
+8
-5
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+8
-5
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/JgInstallationNoticeServiceImpl.java
View file @
150ce904
...
...
@@ -353,7 +353,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
List
<
JgInstallationNoticeEq
>
jgInstallationNoticeEqs
=
jgInstallationNoticeEqMapper
.
selectList
(
lambda
);
if
(!
ValidationUtil
.
isEmpty
(
jgInstallationNoticeEqs
))
{
// 压力管道从工程装置表查询设备信息
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategory
))
{
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategory
)
||
PipelineEnum
.
LONG_DISTANCE_PIPELINE
.
getCode
().
equals
(
equCategory
)
||
PipelineEnum
.
COMMON_PIPELINE
.
getCode
().
equals
(
equCategory
)
)
{
String
projectContraptionId
=
(
String
)
installationInfo
.
get
(
"projectContraptionId"
);
IdxBizJgProjectContraption
projectContraption
=
projectContraptionService
.
getById
(
projectContraptionId
);
installationInfo
.
put
(
"pipelineLength"
,
projectContraption
.
getPipelineLength
());
...
...
@@ -1258,7 +1258,8 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
String
finalYm
=
ym
;
// 工程装置id
String
projectContraptionId
=
jgInstallationNotice
.
getProjectContraptionId
();
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
jgInstallationNotice
.
getEquCategoryCode
()))
{
String
equCategoryCode
=
jgInstallationNotice
.
getEquCategoryCode
();
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)||
PipelineEnum
.
LONG_DISTANCE_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)
||
PipelineEnum
.
COMMON_PIPELINE
.
getCode
().
equals
(
equCategoryCode
))
{
// 处理工业管道审批后业务数据保存
this
.
savePipelineData
(
jgInstallationNotice
,
jgRelationEquips
,
finalYm
,
dto
,
taskV2Model1
);
jgResumeInfoService
.
saveBatchResume
(
...
...
@@ -1583,7 +1584,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
String
equCategoryCode
=
jgInstallationNotice
.
getEquCategoryCode
();
Map
<
String
,
Object
>
installationInfo
=
BeanUtil
.
beanToMap
(
jgInstallationNotice
,
false
,
true
);
// 压力管道从工程装置表查询设备信息
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategoryCode
))
{
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)
||
PipelineEnum
.
LONG_DISTANCE_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)
||
PipelineEnum
.
COMMON_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)
)
{
String
projectContraptionId
=
jgInstallationNotice
.
getProjectContraptionId
();
IdxBizJgProjectContraption
projectContraption
=
projectContraptionService
.
getById
(
projectContraptionId
);
if
(!
ValidationUtil
.
isEmpty
(
projectContraption
))
{
...
...
@@ -1752,8 +1753,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
private
void
deleteConstructionInfo
(
JgInstallationNotice
installationNotice
)
{
constructionInfoMapper
.
delete
(
new
LambdaQueryWrapper
<
IdxBizJgConstructionInfo
>().
eq
(
IdxBizJgConstructionInfo:
:
getNoticeId
,
installationNotice
.
getSequenceNbr
()));
String
equCategoryCode
=
installationNotice
.
getEquCategoryCode
();
// 如果设备类型是工业管道,则还需删除工程装置施工信息
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
installationNotice
.
getEquCategoryCode
()
))
{
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)||
PipelineEnum
.
LONG_DISTANCE_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)
||
PipelineEnum
.
COMMON_PIPELINE
.
getCode
().
equals
(
equCategoryCode
))
{
LambdaQueryWrapper
<
IdxBizJgProjectConstruction
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
IdxBizJgProjectConstruction:
:
getNoticeId
,
installationNotice
.
getSequenceNbr
());
projectConstructionMapper
.
delete
(
queryWrapper
);
...
...
@@ -1781,7 +1783,8 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
this
.
rollBackEsInfo
(
jgRelationEquip
,
idxBizJgRegisterInfo
);
});
// 如果是工业管道,则回滚工程装置表信息
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
installationNotice
.
getEquCategoryCode
()))
{
String
equCategoryCode
=
installationNotice
.
getEquCategoryCode
();
if
(
PipelineEnum
.
INDUSTRIAL_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)||
PipelineEnum
.
LONG_DISTANCE_PIPELINE
.
getCode
().
equals
(
equCategoryCode
)
||
PipelineEnum
.
COMMON_PIPELINE
.
getCode
().
equals
(
equCategoryCode
))
{
this
.
rollBackProjectContraptionInfo
(
installationNotice
);
}
//删除设备履历信息
...
...
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