Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-manage3.0
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
QianQiXiang
haoban-manage3.0
Commits
41afc097
Commit
41afc097
authored
Apr 16, 2020
by
fudahua
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步通讯录 微信同步gic
parent
239fe8ba
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+7
-0
SyncDealContoller.java
...m/gic/haoban/manage/web/controller/SyncDealContoller.java
+3
-0
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
41afc097
...
@@ -201,6 +201,12 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -201,6 +201,12 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
private
String
createBaseTask
(
String
wxEnterpriseId
,
String
taskName
,
String
userId
,
String
desc
,
int
taskType
)
{
private
String
createBaseTask
(
String
wxEnterpriseId
,
String
taskName
,
String
userId
,
String
desc
,
int
taskType
)
{
String
key
=
"sync_create_task_"
+
wxEnterpriseId
;
RedisUtil
.
lock
(
key
,
10L
);
String
taskLock
=
getTaskLock
(
wxEnterpriseId
);
if
(
StringUtils
.
isNotBlank
(
taskLock
))
{
return
null
;
}
TabHaobanSyncTask
tabHaobanSyncTask
=
new
TabHaobanSyncTask
();
TabHaobanSyncTask
tabHaobanSyncTask
=
new
TabHaobanSyncTask
();
tabHaobanSyncTask
.
setAddUser
(
userId
);
tabHaobanSyncTask
.
setAddUser
(
userId
);
tabHaobanSyncTask
.
setTaskName
(
taskName
);
tabHaobanSyncTask
.
setTaskName
(
taskName
);
...
@@ -211,6 +217,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
...
@@ -211,6 +217,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
tabHaobanSyncTask
.
setTaskType
(
taskType
);
tabHaobanSyncTask
.
setTaskType
(
taskType
);
syncTaskService
.
createTask
(
tabHaobanSyncTask
);
syncTaskService
.
createTask
(
tabHaobanSyncTask
);
lockTask
(
wxEnterpriseId
,
tabHaobanSyncTask
.
getTaskId
());
lockTask
(
wxEnterpriseId
,
tabHaobanSyncTask
.
getTaskId
());
RedisUtil
.
unlock
(
key
);
return
tabHaobanSyncTask
.
getTaskId
();
return
tabHaobanSyncTask
.
getTaskId
();
}
}
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/SyncDealContoller.java
View file @
41afc097
...
@@ -65,6 +65,9 @@ public class SyncDealContoller extends WebBaseController {
...
@@ -65,6 +65,9 @@ public class SyncDealContoller extends WebBaseController {
return
resultResponse
(
HaoBanErrCode
.
ERR_10011
);
return
resultResponse
(
HaoBanErrCode
.
ERR_10011
);
}
}
task
=
dealSyncOperationApiService
.
createTask
(
wxEnterpriseId
,
"门店同步"
,
login
.
getStaffDTO
().
getStaffId
(),
"部门同步"
);
task
=
dealSyncOperationApiService
.
createTask
(
wxEnterpriseId
,
"门店同步"
,
login
.
getStaffDTO
().
getStaffId
(),
"部门同步"
);
if
(
task
==
null
)
{
return
resultResponse
(
HaoBanErrCode
.
ERR_10011
);
}
dealSyncOperationApiService
.
dealDepartment
(
task
,
login
.
getWxEnterpriseId
(),
qo
.
getAddDepartment
(),
qo
.
getEditDepartment
());
dealSyncOperationApiService
.
dealDepartment
(
task
,
login
.
getWxEnterpriseId
(),
qo
.
getAddDepartment
(),
qo
.
getEditDepartment
());
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
task
);
return
resultResponse
(
HaoBanErrCode
.
ERR_1
,
task
);
...
...
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