Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bailuntec-cost
Overview
Overview
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
huluobin
bailuntec-cost
Commits
deb3f087
Commit
deb3f087
authored
Oct 15, 2021
by
liyanlin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
223df0b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
4 deletions
+2
-4
OaUserSyncJob.java
...src/main/java/com/blt/other/common/job/OaUserSyncJob.java
+1
-3
OaUserSyncJobConfiguration.java
.../com/blt/other/common/job/OaUserSyncJobConfiguration.java
+1
-1
No files found.
cost-service/src/main/java/com/blt/other/common/job/OaUserSyncJob.java
View file @
deb3f087
...
@@ -81,9 +81,7 @@ public class OaUserSyncJob extends QuartzJobBean {
...
@@ -81,9 +81,7 @@ public class OaUserSyncJob extends QuartzJobBean {
));
));
oaUserList
.
forEach
(
oaUser
->
{
oaUserList
.
forEach
(
oaUser
->
{
oaUser
.
setPrimaryDepartmentId
(
this
.
getPrimaryDepartment
(
oaDepartmentMap
,
oaDepartmentMap
.
get
(
oaUser
.
getDepartmentId
())).
getDepartmentId
());
oaUser
.
setPrimaryDepartmentId
(
this
.
getPrimaryDepartment
(
oaDepartmentMap
,
oaDepartmentMap
.
get
(
oaUser
.
getDepartmentId
())).
getDepartmentId
());
if
(
oaUserService
.
getOne
(
new
LambdaQueryWrapper
<
OaUser
>().
eq
(
OaUser:
:
getOaUserId
,
oaUser
.
getOaUserId
()))
==
null
)
{
oaUserService
.
saveOrUpdate
(
oaUser
,
new
LambdaQueryWrapper
<
OaUser
>().
eq
(
OaUser:
:
getOaUserId
,
oaUser
.
getOaUserId
()));
oaUserService
.
save
(
oaUser
);
}
});
});
oaDepartmentList
.
forEach
(
oaDepartment
->
{
oaDepartmentList
.
forEach
(
oaDepartment
->
{
...
...
cost-service/src/main/java/com/blt/other/common/job/OaUserSyncJobConfiguration.java
View file @
deb3f087
...
@@ -13,7 +13,7 @@ import org.springframework.context.annotation.Configuration;
...
@@ -13,7 +13,7 @@ import org.springframework.context.annotation.Configuration;
@Configuration
@Configuration
public
class
OaUserSyncJobConfiguration
{
public
class
OaUserSyncJobConfiguration
{
// 扫描主体列表时间间隔:(秒)
// 扫描主体列表时间间隔:(秒)
private
static
final
int
TIME
=
60
*
60
*
2
;
private
static
final
int
TIME
=
300
;
// JobDetail 定义要执行的 job
// JobDetail 定义要执行的 job
@Bean
@Bean
...
...
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