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
cb5c3fb9
Commit
cb5c3fb9
authored
Jun 22, 2025
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(amos-boot-module-jg): 修复使用登记模块设置检验字段空指针异常
- 在 setInspectField 方法中增加对 inspectDetail 对象为空的判断 - 如果 inspectDetail 为空,则直接返回,避免后续的空指针异常
parent
4c06bf58
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
JgUseRegistrationManageServiceImpl.java
.../biz/service/impl/JgUseRegistrationManageServiceImpl.java
+3
-0
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/JgUseRegistrationManageServiceImpl.java
View file @
cb5c3fb9
...
@@ -785,6 +785,9 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
...
@@ -785,6 +785,9 @@ public class JgUseRegistrationManageServiceImpl extends BaseService<JgUseRegistr
private
void
setInspectField
(
String
record
,
UseFlagParamDto
useFlagParamDto
)
{
private
void
setInspectField
(
String
record
,
UseFlagParamDto
useFlagParamDto
)
{
Map
<
String
,
Object
>
inspectDetail
=
jgUseRegistrationMapper
.
getInspectDetail
(
record
,
null
);
Map
<
String
,
Object
>
inspectDetail
=
jgUseRegistrationMapper
.
getInspectDetail
(
record
,
null
);
if
(
inspectDetail
==
null
)
{
return
;
}
useFlagParamDto
.
setInspectionUnitName
(
inspectDetail
.
get
(
"inspectOrgName"
)
==
null
?
""
:
inspectDetail
.
get
(
"inspectOrgName"
).
toString
());
useFlagParamDto
.
setInspectionUnitName
(
inspectDetail
.
get
(
"inspectOrgName"
)
==
null
?
""
:
inspectDetail
.
get
(
"inspectOrgName"
).
toString
());
useFlagParamDto
.
setNextInspectionDate
(
inspectDetail
.
get
(
"nextInspectDate"
)
==
null
?
null
:
(
Date
)
inspectDetail
.
get
(
"nextInspectDate"
));
useFlagParamDto
.
setNextInspectionDate
(
inspectDetail
.
get
(
"nextInspectDate"
)
==
null
?
null
:
(
Date
)
inspectDetail
.
get
(
"nextInspectDate"
));
}
}
...
...
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