Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
refined-platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
refined-platform
Commits
c7f87338
Commit
c7f87338
authored
May 15, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加服务追踪
parent
84046cb8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointmentPersonTaskImpl.java
...ortals/xhx/daemon/task/SyncAppointmentPersonTaskImpl.java
+7
-2
No files found.
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointmentPersonTaskImpl.java
View file @
c7f87338
...
@@ -99,7 +99,7 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService {
...
@@ -99,7 +99,7 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService {
if
(
restTotal
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
if
(
restTotal
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
//同步今天预约用户
//同步今天预约用户
List
<
AppointmentDataItem
>
appointUserList
=
restTotal
.
getData
().
getData
();
List
<
AppointmentDataItem
>
appointUserList
=
restTotal
.
getData
().
getData
();
log
.
info
(
"预约用户总数量:{}
"
,
appointUserList
.
size
(
));
log
.
info
(
"预约用户总数量:{}
,{}"
,
appointUserList
.
size
(),
JSON
.
toJSONString
(
appointUserList
));
if
(!
ObjectUtils
.
isEmpty
(
appointUserList
))
{
if
(!
ObjectUtils
.
isEmpty
(
appointUserList
))
{
//查询今天添加的预约 并删除
//查询今天添加的预约 并删除
AppointmentPersonQuery
appointmentPersonQuery
=
new
AppointmentPersonQuery
();
AppointmentPersonQuery
appointmentPersonQuery
=
new
AppointmentPersonQuery
();
...
@@ -110,8 +110,13 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService {
...
@@ -110,8 +110,13 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService {
appointmentPersonService
.
remove
(
ids
,
null
);
appointmentPersonService
.
remove
(
ids
,
null
);
}
}
List
<
AppointmentPersonEntity
>
newUserList
=
appointUserList
.
stream
().
map
(
user
->
{
List
<
AppointmentPersonEntity
>
newUserList
=
appointUserList
.
stream
().
map
(
user
->
{
if
(!
ObjectUtils
.
isEmpty
(
user
.
getIdcardIDCardNo
()))
{
log
.
info
(
"idCard is null . entity:{}"
,
JSON
.
toJSONString
(
user
));
return
null
;
}
AppointmentPersonEntity
appointmentPersonEntity
=
new
AppointmentPersonEntity
();
AppointmentPersonEntity
appointmentPersonEntity
=
new
AppointmentPersonEntity
();
appointmentPersonEntity
.
initAttrValue
();
appointmentPersonEntity
.
initAttrValue
();
PersonEntity
personCache
=
personService
.
getExtCache
(
user
.
getIdcardIDCardNo
());
PersonEntity
personCache
=
personService
.
getExtCache
(
user
.
getIdcardIDCardNo
());
appointmentPersonEntity
.
setPersonId
(
personCache
==
null
?
-
1
:
personCache
.
getId
());
appointmentPersonEntity
.
setPersonId
(
personCache
==
null
?
-
1
:
personCache
.
getId
());
appointmentPersonEntity
.
setName
(
personCache
==
null
?
""
:
personCache
.
getName
());
appointmentPersonEntity
.
setName
(
personCache
==
null
?
""
:
personCache
.
getName
());
...
@@ -127,7 +132,7 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService {
...
@@ -127,7 +132,7 @@ public class SyncAppointmentPersonTaskImpl implements ITaskExcuteService {
appointmentPersonEntity
.
setCreateUserName
(
"系统管理员"
);
appointmentPersonEntity
.
setCreateUserName
(
"系统管理员"
);
appointmentPersonEntity
.
setCreateTime
(
new
Date
());
appointmentPersonEntity
.
setCreateTime
(
new
Date
());
return
appointmentPersonEntity
;
return
appointmentPersonEntity
;
}).
collect
(
Collectors
.
toList
());
}).
filter
(
f
->
f
!=
null
).
collect
(
Collectors
.
toList
());
if
(!
ObjectUtils
.
isEmpty
(
newUserList
))
{
if
(!
ObjectUtils
.
isEmpty
(
newUserList
))
{
log
.
info
(
"预约用户新增,size:{}"
,
newUserList
.
size
());
log
.
info
(
"预约用户新增,size:{}"
,
newUserList
.
size
());
...
...
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