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
fe01441b
Commit
fe01441b
authored
Feb 06, 2026
by
tianbo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg): 修复设备注册信息处理中的空指针异常
- 在查找设备ES信息时增加了空值检查,防止record为空时抛出异常 - 施工类型单位添加设备时使用信息表设置信用代码和名称 - 注释掉了西安数据对接中不必要的96333码验证规则
parent
ce6f07c9
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
XiAnDataDockServiceImpl.java
...oin/amos/api/openapi/service/XiAnDataDockServiceImpl.java
+1
-1
IdxBizJgRegisterInfoServiceImpl.java
.../jg/biz/service/impl/IdxBizJgRegisterInfoServiceImpl.java
+10
-3
JgInstallationNoticeServiceImpl.java
.../jg/biz/service/impl/JgInstallationNoticeServiceImpl.java
+1
-1
No files found.
amos-boot-data/amos-boot-data-openapi/src/main/java/com/yeejoin/amos/api/openapi/service/XiAnDataDockServiceImpl.java
View file @
fe01441b
...
@@ -701,7 +701,7 @@ public class XiAnDataDockServiceImpl {
...
@@ -701,7 +701,7 @@ public class XiAnDataDockServiceImpl {
checkNotBlank
(
data
.
getEquCodeType
(),
"有无设备代码不能为空;"
,
rowError
);
checkNotBlank
(
data
.
getEquCodeType
(),
"有无设备代码不能为空;"
,
rowError
);
// 需要历史登记数据,使用登记证编号不能为空
// 需要历史登记数据,使用登记证编号不能为空
if
(
isRegistration
)
{
if
(
isRegistration
)
{
checkNotBlank
(
data
.
getCode96333
(),
"96333码不能为空;"
,
rowError
);
//
checkNotBlank(data.getCode96333(), "96333码不能为空;", rowError);
checkNotBlank
(
data
.
getUseOrgCode
(),
"使用登记证编号不能为空;"
,
rowError
);
checkNotBlank
(
data
.
getUseOrgCode
(),
"使用登记证编号不能为空;"
,
rowError
);
if
(
useOrgCodeList
.
contains
(
data
.
getUseOrgCode
()))
{
if
(
useOrgCodeList
.
contains
(
data
.
getUseOrgCode
()))
{
rowError
.
append
(
"使用登记证编号不能重复;"
).
append
(
data
.
getUseOrgCode
());
rowError
.
append
(
"使用登记证编号不能重复;"
).
append
(
data
.
getUseOrgCode
());
...
...
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 @
fe01441b
...
@@ -936,7 +936,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -936,7 +936,7 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
operateType
=
isCopy
?
OPERATESAVE
:
operateType
;
operateType
=
isCopy
?
OPERATESAVE
:
operateType
;
String
submitType
=
String
.
valueOf
(
paramMap
.
get
(
"submitType"
));
String
submitType
=
String
.
valueOf
(
paramMap
.
get
(
"submitType"
));
String
record
=
(
String
)
equipmentInfoForm
.
get
(
RECORD
);
String
record
=
(
String
)
equipmentInfoForm
.
get
(
RECORD
);
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
esEquipmentCategory
.
findById
(
record
).
orElse
(
null
)
;
ESEquipmentCategoryDto
esEquipmentCategoryDto
=
!
ValidationUtil
.
isEmpty
(
record
)
?
esEquipmentCategory
.
findById
(
record
).
orElse
(
null
)
:
null
;
try
{
try
{
// 设备代码 字段的唯一性校验
// 设备代码 字段的唯一性校验
checkEquCodeUniqueness
(
equipmentInfoForm
);
checkEquCodeUniqueness
(
equipmentInfoForm
);
...
@@ -3761,6 +3761,11 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3761,6 +3761,11 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
}
}
// 删除使用信息中的省、市、区下滑线数据,来源详情的getEquipInfoMap的放入
// 删除使用信息中的省、市、区下滑线数据,来源详情的getEquipInfoMap的放入
this
.
removeDescAfterCode
(
useInfo
);
this
.
removeDescAfterCode
(
useInfo
);
// 单位信息
String
companyName
=
companyInfoMap
.
get
(
"companyName"
).
toString
();
String
companyCode
=
companyInfoMap
.
get
(
"creditCode"
).
toString
();
// 使用信息
// 使用信息
useInfo
.
setRecord
(
record
);
useInfo
.
setRecord
(
record
);
useInfo
.
setRecDate
(
date
);
useInfo
.
setRecDate
(
date
);
...
@@ -3771,6 +3776,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3771,6 +3776,10 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
useInfo
.
setUseUnitCreditCode
(
companyInfoMap
.
get
(
"creditCode"
).
toString
());
useInfo
.
setUseUnitCreditCode
(
companyInfoMap
.
get
(
"creditCode"
).
toString
());
useInfo
.
setUseUnitName
(
companyInfoMap
.
get
(
"companyName"
).
toString
());
useInfo
.
setUseUnitName
(
companyInfoMap
.
get
(
"companyName"
).
toString
());
}
}
if
(
companyTypeStr
.
contains
(
CompanyTypeEnum
.
CONSTRUCTION
.
getCode
()))
{
useInfo
.
setUSC_UNIT_CREDIT_CODE
(
companyCode
);
useInfo
.
setUSC_UNIT_NAME
(
companyName
);
}
if
(
OPERATESAVE
.
equals
(
operateType
))
{
if
(
OPERATESAVE
.
equals
(
operateType
))
{
useInfo
.
setCreateDate
(
date
);
useInfo
.
setCreateDate
(
date
);
}
}
...
@@ -3814,8 +3823,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
...
@@ -3814,8 +3823,6 @@ public class IdxBizJgRegisterInfoServiceImpl extends BaseService<IdxBizJgRegiste
iIdxBizJgFactoryInfoService
.
saveOrUpdateData
(
factoryInfo
);
iIdxBizJgFactoryInfoService
.
saveOrUpdateData
(
factoryInfo
);
// 施工信息
// 施工信息
String
companyName
=
companyInfoMap
.
get
(
"companyName"
).
toString
();
String
companyCode
=
companyInfoMap
.
get
(
"creditCode"
).
toString
();
constructionInfo
.
setRecord
(
record
);
constructionInfo
.
setRecord
(
record
);
constructionInfo
.
setRecDate
(
date
);
constructionInfo
.
setRecDate
(
date
);
if
(!
registerInfo
.
getEquList
().
equals
(
"5000"
)
&&
!
registerInfo
.
getEquCategory
().
equals
(
"4400"
)
&&
!
registerInfo
.
getEquCategory
().
equals
(
"2300"
))
{
if
(!
registerInfo
.
getEquList
().
equals
(
"5000"
)
&&
!
registerInfo
.
getEquCategory
().
equals
(
"4400"
)
&&
!
registerInfo
.
getEquCategory
().
equals
(
"2300"
))
{
...
...
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 @
fe01441b
...
@@ -2097,7 +2097,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
...
@@ -2097,7 +2097,7 @@ public class JgInstallationNoticeServiceImpl extends BaseService<JgInstallationN
}
}
Lists
.
partition
(
Lists
.
newArrayList
(
equipIds
),
1000
).
forEach
(
ids
->
{
Lists
.
partition
(
Lists
.
newArrayList
(
equipIds
),
1000
).
forEach
(
ids
->
{
LambdaUpdateWrapper
<
IdxBizJgUseInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
LambdaUpdateWrapper
<
IdxBizJgUseInfo
>
updateWrapper
=
new
LambdaUpdateWrapper
<>();
updateWrapper
.
in
(
IdxBizJgUseInfo:
:
getRecord
,
Collections
.
singletonList
(
ids
)
);
updateWrapper
.
in
(
IdxBizJgUseInfo:
:
getRecord
,
ids
);
// 强制更新字段为 NULL
// 强制更新字段为 NULL
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getUseUnitCreditCode
,
null
);
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getUseUnitCreditCode
,
null
);
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getUseUnitName
,
null
);
updateWrapper
.
set
(
IdxBizJgUseInfo:
:
getUseUnitName
,
null
);
...
...
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