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
57d795f7
Commit
57d795f7
authored
Mar 03, 2026
by
刘林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(jg):已注销历史设备,办理历史登记,提示保存失败,接口机构code取错值导致
parent
be7a1e92
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
JgUseRegistrationServiceImpl.java
...ule/jg/biz/service/impl/JgUseRegistrationServiceImpl.java
+13
-3
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/JgUseRegistrationServiceImpl.java
View file @
57d795f7
...
...
@@ -1620,10 +1620,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
changeRecord
.
setReceiveCompanyCode
(
jgUseRegistration
.
getReceiveCompanyOrgCode
());
//接收机构公司代码
// 流水表不需要再次生成唯一编号,使用证管理表对应值
if
(!
ObjectUtils
.
isEmpty
(
jgUseRegistration
.
getUseRegistrationCode
()))
{
JgUseRegistrationManage
manage
=
jgUseRegistrationManageService
.
lambdaQuery
()
JgUseRegistrationManage
manage
=
jgUseRegistrationManageService
.
lambdaQuery
()
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
jgUseRegistration
.
getUseRegistrationCode
())
.
eq
(
JgUseRegistrationManage:
:
getIsDelete
,
0
)
.
eq
(
JgUseRegistrationManage:
:
getCertificateStatus
,
CertificateStatusEnum
.
YIDENGJI
.
getName
()).
one
();
.
orderByDesc
(
JgUseRegistrationManage:
:
getRecDate
)
.
last
(
"limit 1"
)
.
one
();
changeRecord
.
setCertificateNo
(
ValidationUtil
.
isEmpty
(
manage
)
?
this
.
genCertificateNo
(
registerInfo
,
jgUseRegistration
)
:
manage
.
getCertificateNo
());
//登记证书唯一码
}
changeRecord
.
setUseUnitCreditCode
(
jgUseRegistration
.
getUseUnitCreditCode
());
//使用单位统一信用代码
...
...
@@ -1643,7 +1646,7 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
log
.
error
(
"日期转换失败:"
,
e
);
}
String
equCode
=
Optional
.
ofNullable
(
registerInfo
.
getEquDefine
()).
orElse
(
registerInfo
.
getEquCategory
());
String
registrationCode
=
equCode
+
codeUtil
.
getCityRegionCode
(
jgUseRegistration
.
getReceiveCompany
Org
Code
())
+
ym
;
String
registrationCode
=
equCode
+
codeUtil
.
getCityRegionCode
(
jgUseRegistration
.
getReceiveCompanyCode
())
+
ym
;
return
tzsServiceFeignClient
.
deviceRegistrationCode
(
registrationCode
).
getResult
();
}
...
...
@@ -3839,6 +3842,13 @@ public class JgUseRegistrationServiceImpl extends BaseService<JgUseRegistrationD
Iterable
<
ESEquipmentInfo
>
esEquipmentInfosSnapshot
=
esEquipmentDao
.
findAllById
(
records
);
try
{
this
.
updateById
(
jgUseRegistration
);
//如果是历史登记,使用登记证编号可编辑,需要从设备中拿取最新的证号进行更新
if
(
"1"
.
equals
(
jgUseRegistration
.
getRegType
()))
{
records
.
stream
().
findFirst
()
.
map
(
idxBizJgRegisterInfoMapper:
:
getUseOrgCodeByEquip
)
.
filter
(
org
.
apache
.
commons
.
lang3
.
StringUtils
::
isNotBlank
)
.
ifPresent
(
jgUseRegistration:
:
setUseRegistrationCode
);
}
// 处理非批量导入数据,更新关联业务状态
processElseDataByStatusSet
(
oldStatus
,
jgUseRegistration
);
// es数据处理 提出来便于进行异常回调
...
...
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