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
72e9746d
Commit
72e9746d
authored
Jan 12, 2024
by
刘凡
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化:设备详情返回设备种类描述字段
parent
d91bbff4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+7
-2
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/IdxBizJgRegisterInfoServiceImpl.java
View file @
72e9746d
...
...
@@ -292,8 +292,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
//注册登记
IdxBizJgRegisterInfo
registerInfo
=
this
.
getOne
(
new
QueryWrapper
<
IdxBizJgRegisterInfo
>().
eq
(
"RECORD"
,
record
));
if
(!
ValidationUtil
.
isEmpty
(
registerInfo
))
{
String
equList
=
registerInfo
.
getEquList
();
//设备种类
String
equCategory
=
registerInfo
.
getEquCategory
();
//设备类别
String
equDefine
=
registerInfo
.
getEquDefine
();
//设备品种
List
<
EquipmentCategory
>
categoryList0
=
commonService
.
getEquipmentCategoryList
(
equList
,
null
);
List
<
EquipmentCategory
>
categoryList1
=
commonService
.
getEquipmentCategoryList
(
equCategory
,
null
);
List
<
EquipmentCategory
>
categoryList2
=
commonService
.
getEquipmentCategoryList
(
equDefine
,
null
);
Map
<
String
,
Object
>
registerInfoMap
;
...
...
@@ -302,6 +304,9 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
registerInfoMap
.
put
(
"registerinfoSeq"
,
registerInfo
.
getSequenceNbr
());
registerInfoMap
.
put
(
"sequenceNbr"
,
registerInfo
.
getSequenceNbr
());
registerInfoMap
.
put
(
"productPhoto"
,
JSON
.
parseArray
(
registerInfo
.
getProductPhoto
()));
if
(
CollectionUtils
.
isNotEmpty
(
categoryList0
))
{
registerInfoMap
.
put
(
"equListDesc"
,
categoryList0
.
get
(
0
).
getName
());
}
if
(
CollectionUtils
.
isNotEmpty
(
categoryList1
))
{
registerInfoMap
.
put
(
"equCategoryDesc"
,
categoryList1
.
get
(
0
).
getName
());
}
...
...
@@ -1264,7 +1269,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
List
<
IdxBizJgMainParts
>
mainPartsList
=
new
ArrayList
<>();
List
<
IdxBizJgProtectionDevices
>
protectionDevicesList
=
new
ArrayList
<>();
if
(
EQUIP_MAINPARTS_FORM_ID
.
equals
(
subFormType
))
{
if
(
EQUIP_MAINPARTS_FORM_ID
.
equals
(
subFormType
)
&&
!
ValidationUtil
.
isEmpty
(
list
)
)
{
for
(
Object
s
:
list
)
{
List
subFormMainPartsList
=
(
ArrayList
)
map
.
get
(
s
);
if
(!
ObjectUtils
.
isEmpty
(
subFormMainPartsList
))
{
...
...
@@ -1279,7 +1284,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
return
mainPartsList
;
}
else
if
(
EQUIP_PROTECTIONDEVICES_FORM_ID
.
equals
(
subFormType
))
{
}
else
if
(
EQUIP_PROTECTIONDEVICES_FORM_ID
.
equals
(
subFormType
)
&&
!
ValidationUtil
.
isEmpty
(
list
)
)
{
for
(
Object
s
:
list
)
{
List
subFormProtectionDevicesList
=
(
ArrayList
)
map
.
get
(
s
);
if
(!
ObjectUtils
.
isEmpty
(
subFormProtectionDevicesList
))
{
...
...
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