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
116fda22
Commit
116fda22
authored
May 18, 2023
by
赵啸非
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加定时删除七天前的人流数据
parent
dc31b9ca
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
...ortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
+1
-0
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
...in/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
+3
-3
No files found.
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncAppointWaitAndFinTaskImpl.java
View file @
116fda22
...
...
@@ -171,6 +171,7 @@ public class SyncAppointWaitAndFinTaskImpl implements ITaskExcuteService {
private
void
updateWaitQueueTime
()
{
CareConfigEntity
careConfigEntity
=
careConfigService
.
selectOne
(
new
CareConfigQuery
());
List
<
CareRecordsEntity
>
careRecordsEntities
=
careRecordsService
.
find
(
new
CareRecordsQuery
().
processStatus
(
ProcessStatusEnum
.
排队中
.
getValue
()));
log
.
info
(
"排队数量:{}"
,
careRecordsEntities
.
size
());
if
(!
ObjectUtils
.
isEmpty
(
careRecordsEntities
))
{
//更新等待时长
List
<
CareRecordsEntity
>
recordsEntities
=
careRecordsEntities
.
stream
().
map
(
item
->
{
...
...
refined-manager/src/main/java/com/mortals/xhx/daemon/task/SyncUserTaskImpl.java
View file @
116fda22
...
...
@@ -45,18 +45,18 @@ public class SyncUserTaskImpl implements ITaskExcuteService {
if
(
resp
.
getCode
()
==
YesNoEnum
.
YES
.
getValue
())
{
//同步更新用户,以loginname为唯一标识,密码默认与用户相同
resp
.
getData
().
getData
().
forEach
(
user
->
{
log
.
info
(
"loginName:{}"
,
user
.
getLoginName
());
//
log.info("loginName:{}", user.getLoginName());
UserEntity
tempEntity
=
userService
.
selectOne
(
new
UserQuery
().
loginName
(
user
.
getLoginName
()));
if
(
ObjectUtils
.
isEmpty
(
tempEntity
))
{
UserEntity
userEntity
=
new
UserEntity
();
BeanUtils
.
copyProperties
(
user
,
userEntity
,
new
String
[]{
"id"
,
"lastLoginTime"
,
"lastLoginAddress"
});
log
.
info
(
"新增:{}"
,
JSON
.
toJSONString
(
userEntity
));
//
log.info("新增:{}", JSON.toJSONString(userEntity));
userService
.
getUserDao
().
insert
(
userEntity
);
}
else
{
//更新基本信息
UserEntity
userEntity
=
new
UserEntity
();
BeanUtils
.
copyProperties
(
user
,
userEntity
,
new
String
[]{
"loginPwd"
,
"userType"
,
"status"
,
"lastLoginTime"
,
"lastLoginAddress"
});
log
.
info
(
"更新:{}"
,
JSON
.
toJSONString
(
userEntity
));
//
log.info("更新:{}", JSON.toJSONString(userEntity));
userService
.
getUserDao
().
update
(
userEntity
);
}
});
...
...
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