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
4be7b182
Commit
4be7b182
authored
Mar 03, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1.安装告知、使用登记增,压力管道详情页面增加设备种类、设备类别、设备品种后端修改
parent
34c48c6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
51 additions
and
1 deletion
+51
-1
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+27
-0
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+24
-1
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 @
4be7b182
...
...
@@ -306,12 +306,14 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
// 兼容老数据
if
(
hisData
==
null
)
{
Map
<
String
,
Object
>
detail
=
setNewEquipData
(
companyLevel
,
installationInfo
);
this
.
fillingEquCategoryNameForHisData
(
detail
,
notice
);
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"installationInfo"
,
detail
);
}};
}
else
{
hisData
.
putAll
(
installationInfo
);
CommonServiceImpl
.
formatTime2StrDateForEquip
(
hisData
);
this
.
fillingEquCategoryNameForHisData
(
hisData
,
notice
);
return
new
HashMap
<
String
,
Map
<
String
,
Object
>>()
{{
this
.
put
(
"installationInfo"
,
hisData
);
}};
...
...
@@ -327,6 +329,25 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
}
}
/**
* 历史数据填充设备种类、设备类别、设备品种
* @param detail 返回json
* @param notice 当前单据
*/
private
void
fillingEquCategoryNameForHisData
(
Map
<
String
,
Object
>
detail
,
JgInstallationNotice
notice
)
{
if
(!
StringUtils
.
isEmpty
(
notice
.
getProjectContraptionId
())){
LambdaQueryWrapper
<
IdxBizJgProjectContraption
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
BaseEntity:
:
getSequenceNbr
,
notice
.
getProjectContraptionId
());
queryWrapper
.
select
(
IdxBizJgProjectContraption:
:
getEquListName
,
IdxBizJgProjectContraption:
:
getEquCategoryName
,
IdxBizJgProjectContraption:
:
getEquDefineName
,
BaseEntity:
:
getSequenceNbr
);
IdxBizJgProjectContraption
projectContraption
=
projectContraptionService
.
getBaseMapper
().
selectOne
(
queryWrapper
);
if
(
projectContraption
!=
null
){
detail
.
put
(
"equListName"
,
projectContraption
.
getEquListName
());
detail
.
put
(
"equCategoryName"
,
projectContraption
.
getEquCategoryName
());
detail
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
}
}
}
private
List
<
Map
<
String
,
Object
>>
getEquipListMaps
(
Iterable
<
ESEquipmentCategoryDto
>
equips
)
{
List
<
Map
<
String
,
Object
>>
arrayList
=
new
ArrayList
<>();
equips
.
forEach
(
equip
->
{
...
...
@@ -362,6 +383,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
installationInfo
.
put
(
"pipelineLength"
,
projectContraption
.
getPipelineLength
());
installationInfo
.
put
(
"projectContraptionNo"
,
projectContraption
.
getProjectContraptionNo
());
installationInfo
.
put
(
"projectContraption"
,
projectContraption
.
getProjectContraption
());
installationInfo
.
put
(
"equListName"
,
projectContraption
.
getEquListName
());
installationInfo
.
put
(
"equCategoryName"
,
projectContraption
.
getEquCategoryName
());
installationInfo
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
equipListMaps
=
projectContraptionService
.
getBaseMapper
().
selectEquipList
(
projectContraptionId
);
equipListMaps
.
forEach
(
item
->
item
.
put
(
"deviceLevel"
,
Optional
.
ofNullable
(
dataDictionaryMapper
.
selectById
(
String
.
valueOf
(
item
.
get
(
"deviceLevel"
))))
...
...
@@ -1941,6 +1965,9 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
if
(!
ValidationUtil
.
isEmpty
(
projectContraption
.
getAddress
()))
{
result
.
fluentPut
(
"address"
,
projectContraption
.
getAddress
());
}
result
.
put
(
"equListName"
,
projectContraption
.
getEquListName
());
result
.
put
(
"equCategoryName"
,
projectContraption
.
getEquCategoryName
());
result
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
return
result
;
}
...
...
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/JgUseRegistrationServiceImpl.java
View file @
4be7b182
...
...
@@ -2108,6 +2108,25 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
});
}
/**
* 历史数据填充 设备种类、设备类别、设备品种名称
* @param detail 返回数据
* @param jgUseRegistration 当前单据
*/
private
void
fillingEquCategoryNameForHisData
(
Map
<
String
,
Object
>
detail
,
JgUseRegistration
jgUseRegistration
)
{
if
(!
StringUtils
.
isEmpty
(
jgUseRegistration
.
getProjectContraptionId
())){
LambdaQueryWrapper
<
IdxBizJgProjectContraption
>
queryWrapper
=
new
LambdaQueryWrapper
<>();
queryWrapper
.
eq
(
BaseEntity:
:
getSequenceNbr
,
jgUseRegistration
.
getProjectContraptionId
());
queryWrapper
.
select
(
IdxBizJgProjectContraption:
:
getEquListName
,
IdxBizJgProjectContraption:
:
getEquCategoryName
,
IdxBizJgProjectContraption:
:
getEquDefineName
,
BaseEntity:
:
getSequenceNbr
);
IdxBizJgProjectContraption
projectContraption
=
jgProjectContraptionService
.
getBaseMapper
().
selectOne
(
queryWrapper
);
if
(
projectContraption
!=
null
){
detail
.
put
(
"equListName"
,
projectContraption
.
getEquListName
());
detail
.
put
(
"equCategoryName"
,
projectContraption
.
getEquCategoryName
());
detail
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
}
}
}
public
Map
<
String
,
Object
>
getDetail
(
String
record
,
Long
sequenceNbr
)
{
if
(!
ObjectUtils
.
isEmpty
(
sequenceNbr
))
{
JgUseRegistration
jgUseRegistration
=
this
.
getBaseMapper
().
selectById
(
sequenceNbr
);
...
...
@@ -2172,6 +2191,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
jsonObject
.
put
(
"useRegistrationCode"
,
jgUseRegistration
.
getUseRegistrationCode
());
jsonObject
.
put
(
"useRegistrationFormUrl"
,
jgUseRegistration
.
getUseRegistrationFormUrl
());
jsonObject
.
put
(
"useRegistrationFormFile"
,
JSONArray
.
parseArray
(
jgUseRegistration
.
getUseRegistrationFormFile
()));
this
.
fillingEquCategoryNameForHisData
(
jsonObject
,
jgUseRegistration
);
// 转化 附件 字段
commonServiceImpl
.
convertStringToJsonobject
(
jsonObject
,
jsonFields
);
// 结果增强,填充单据是否可变更设备状态,用来控制前端按钮的显示隐藏。
...
...
@@ -4296,7 +4316,10 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
.
put
(
"projectContraptionId"
,
projectContraptionSeq
)
.
put
(
"projectContraptionNo"
,
projectContraption
.
getProjectContraptionNo
())
.
put
(
"isFirstMerge"
,
projectContraption
.
getIsFirstMerge
())
.
put
(
"pipelineLength"
,
totalPipelineLength
);
.
put
(
"pipelineLength"
,
totalPipelineLength
)
.
put
(
"equListName"
,
projectContraption
.
getEquListName
())
.
put
(
"equCategoryName"
,
projectContraption
.
getEquCategoryName
())
.
put
(
"equDefineName"
,
projectContraption
.
getEquDefineName
());
setProjectContraptionInfo
(
projectContraption
,
resultBuilder
);
return
resultBuilder
.
build
();
}
...
...
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