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
8cd0fb0a
Commit
8cd0fb0a
authored
Sep 23, 2025
by
suhuiguang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refact(jg): 3库设备信息增量同步
1.兼容性处理,生产环境有脏数据,一个证号同时又多个生效的
parent
b07bc64a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
EquipmentRefreshHandler.java
...odule/jg/biz/refresh/handler/EquipmentRefreshHandler.java
+4
-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/refresh/handler/EquipmentRefreshHandler.java
View file @
8cd0fb0a
...
@@ -96,11 +96,14 @@ public class EquipmentRefreshHandler implements IDataRefreshHandler {
...
@@ -96,11 +96,14 @@ public class EquipmentRefreshHandler implements IDataRefreshHandler {
if
(
StringUtils
.
isEmpty
(
useRegistrationCode
))
{
if
(
StringUtils
.
isEmpty
(
useRegistrationCode
))
{
return
null
;
return
null
;
}
}
// 限制下正常只有1个,有脏数据,故按照最新的通过日期,倒序取第一个
LambdaQueryWrapper
<
JgUseRegistrationManage
>
useRegistrationManageWrapper
=
new
LambdaQueryWrapper
<>();
LambdaQueryWrapper
<
JgUseRegistrationManage
>
useRegistrationManageWrapper
=
new
LambdaQueryWrapper
<>();
useRegistrationManageWrapper
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
useRegistrationCode
)
useRegistrationManageWrapper
.
eq
(
JgUseRegistrationManage:
:
getUseRegistrationCode
,
useRegistrationCode
)
.
isNotNull
(
JgUseRegistrationManage:
:
getUseRegistrationCode
)
.
isNotNull
(
JgUseRegistrationManage:
:
getUseRegistrationCode
)
.
eq
(
JgUseRegistrationManage:
:
getCertificateStatus
,
"已登记"
)
.
eq
(
JgUseRegistrationManage:
:
getCertificateStatus
,
"已登记"
)
.
eq
(
BaseEntity:
:
getIsDelete
,
false
).
select
(
BaseEntity:
:
getSequenceNbr
,
JgUseRegistrationManage:
:
getRegDate
);
.
eq
(
BaseEntity:
:
getIsDelete
,
false
)
.
orderByDesc
(
JgUseRegistrationManage:
:
getAuditPassDate
)
.
select
(
BaseEntity:
:
getSequenceNbr
,
JgUseRegistrationManage:
:
getRegDate
).
last
(
"limit 1"
);
JgUseRegistrationManage
manage
=
jgUseRegistrationManageServiceImpl
.
getBaseMapper
().
selectOne
(
useRegistrationManageWrapper
);
JgUseRegistrationManage
manage
=
jgUseRegistrationManageServiceImpl
.
getBaseMapper
().
selectOne
(
useRegistrationManageWrapper
);
return
Optional
.
ofNullable
(
manage
).
map
(
JgUseRegistrationManage:
:
getRegDate
).
map
(
d
->
d
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
()).
orElse
(
null
);
return
Optional
.
ofNullable
(
manage
).
map
(
JgUseRegistrationManage:
:
getRegDate
).
map
(
d
->
d
.
toInstant
().
atZone
(
ZoneId
.
systemDefault
()).
toLocalDate
()).
orElse
(
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