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
f615c281
Commit
f615c281
authored
Dec 19, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg): 修复设备注册信息处理逻辑
- 清理objMap中值为"null"的无效条目 - 修正充装介质字段的映射逻辑,避免空指针异常 - 按单位办理的登记时不更新产品编号,防止数据覆盖 - 统一使用MapUtil安全获取字典值,增强代码健壮性
parent
d824b547
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+3
-1
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+5
-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/IdxBizJgRegisterInfoServiceImpl.java
View file @
f615c281
...
...
@@ -1915,6 +1915,8 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
objMap
.
put
(
"EQU_DEFINE_DEAL"
,
equDefineStr
);
}
// objMap中值为"null"的替换为null
objMap
.
entrySet
().
removeIf
(
e
->
"null"
.
equals
(
e
.
getValue
()));
return
objMap
;
}
...
...
@@ -4137,7 +4139,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
Map
<
String
,
Object
>
fillingMediumMap
=
fillingMedium
.
stream
().
collect
(
Collectors
.
toMap
(
DictionarieValueModel:
:
getDictDataKey
,
DictionarieValueModel:
:
getDictDataValue
));
Page
<
JSONObject
>
result
=
jgUseRegistrationMapper
.
queryForUnitVesselEquipmentPage
(
page
,
jsonObject
,
recordList
);
result
.
getRecords
().
forEach
(
i
->
{
i
.
put
(
"chargingMedium"
,
MapUtil
.
getStr
(
fillingMediumMap
,
"chargingMedium"
,
""
));
i
.
put
(
"chargingMedium"
,
MapUtil
.
getStr
(
fillingMediumMap
,
MapUtil
.
getStr
(
i
,
"chargingMedium"
)
,
""
));
i
.
put
(
"sequenceNbr"
,
MapUtil
.
getStr
(
i
,
"record"
));
i
.
put
(
"productPhoto"
,
JSONArray
.
parseArray
(
i
.
getString
(
"productPhoto"
)));
i
.
put
(
"cylinderStampAttachment"
,
JSONArray
.
parseArray
(
i
.
getString
(
"cylinderStampAttachment"
)));
...
...
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 @
f615c281
...
...
@@ -470,10 +470,14 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
idxBizJgRegisterInfoService
.
update
(
IdxBizJgRegLambda
);
// 更新制造信息-产品编号
// 单位办理的不修改产品编号,页面没有修改入口
String
equipList
=
MapUtil
.
getStr
(
map
,
"equipmentLists"
);
if
(
ValidationUtil
.
isEmpty
(
equipList
))
{
LambdaUpdateWrapper
<
IdxBizJgFactoryInfo
>
factoryLambda
=
new
UpdateWrapper
<
IdxBizJgFactoryInfo
>().
lambda
();
factoryLambda
.
eq
(
IdxBizJgFactoryInfo:
:
getRecord
,
map
.
get
(
"equipId"
))
.
set
(
IdxBizJgFactoryInfo:
:
getFactoryNum
,
map
.
get
(
"factoryNum"
));
idxBizJgFactoryInfoService
.
update
(
factoryLambda
);
}
// 更新设备监管部门
IdxBizJgSupervisionInfo
idxBizJgSupervisionInfo
=
new
IdxBizJgSupervisionInfo
();
...
...
@@ -2522,7 +2526,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
?
Collections
.
emptyList
()
:
jgUseRegistrationMapper
.
queryForUnitVesselEquipment
(
records
);
result
.
forEach
(
i
->
{
i
.
put
(
"chargingMedium"
,
fillingMediumMap
.
get
(
i
.
get
(
"chargingMedium"
)
));
i
.
put
(
"chargingMedium"
,
MapUtil
.
getStr
(
fillingMediumMap
,
i
.
get
(
"chargingMedium"
),
""
));
i
.
put
(
"productPhoto"
,
JSONArray
.
parseArray
((
String
)
i
.
get
(
"productPhoto"
)));
i
.
put
(
"cylinderStampAttachment"
,
JSONArray
.
parseArray
((
String
)
i
.
get
(
"cylinderStampAttachment"
)));
i
.
put
(
"informationSituation"
,
InformationManageTypeEnum
.
getName
((
String
)
i
.
get
(
"informationSituation"
)));
...
...
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