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
1
Merge Requests
1
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
haoban3.0
haoban-manage3.0
Commits
a5e7720f
Commit
a5e7720f
authored
Aug 28, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部门
parent
1b9872e8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
DealSyncOperationApiServiceImpl.java
...ice/service/out/impl/DealSyncOperationApiServiceImpl.java
+1
-1
QywxDeptSyncOperation.java
...gic/haoban/manage/service/task/QywxDeptSyncOperation.java
+3
-2
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/DealSyncOperationApiServiceImpl.java
View file @
a5e7720f
...
...
@@ -537,7 +537,7 @@ public class DealSyncOperationApiServiceImpl implements DealSyncOperationApiServ
unlockTask
(
wxEnterpriseId
);
return
"没有配置secret"
;
}
List
<
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
>
list
=
qywxDepartmentApiService
.
simple
listSelfDepartment
(
qwDTO
.
getDkCorpid
(),
secretSetting
.
getSecretVal
(),
1
,
qwDTO
.
getUrlHost
());
List
<
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
>
list
=
qywxDepartmentApiService
.
listSelfDepartment
(
qwDTO
.
getDkCorpid
(),
secretSetting
.
getSecretVal
(),
1
,
qwDTO
.
getUrlHost
());
if
(
CollectionUtils
.
isEmpty
(
list
))
{
logger
.
info
(
"企微部门数量0,退出同步"
);
syncTaskService
.
updateTaskStatus
(
taskId
,
SyncTaskStatusEnum
.
exception_close
.
getVal
());
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/QywxDeptSyncOperation.java
View file @
a5e7720f
...
...
@@ -95,14 +95,15 @@ public class QywxDeptSyncOperation implements BaseSyncOperation {
}
logger
.
info
(
"分组是否存在:{}"
,
JSON
.
toJSONString
(
department
));
String
dataContent
=
dataPre
.
getDataContent
();
String
wxEnterpriseId
=
dataPre
.
getWxEnterpriseId
()
;
String
enterpriseId
=
dataPre
.
getEnterpriseId
()
;
String
dataId
=
dataPre
.
getDataId
()
;
String
taskId
=
dataPre
.
getTaskId
()
;
WxEnterpriseQwDTO
qwDTO
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
SecretSettingDTO
secretSetting
=
secretSettingService
.
getSecretSetting
(
wxEnterpriseId
,
SecretTypeEnum
.
CUSTOMIZED_APP
.
getVal
());
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
qywxDepart
=
this
.
qywxDepartmentApiService
.
getSelfDepartmentById
(
qwDTO
.
getDkCorpid
(),
secretSetting
.
getSecretVal
(),
Integer
.
valueOf
(
dataId
),
qwDTO
.
getUrlHost
())
;
String
dataContent
=
dataPre
.
getDataContent
();
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
qywxDepart
=
JSONObject
.
parseObject
(
dataContent
,
com
.
gic
.
wechat
.
api
.
dto
.
qywx
.
DepartmentDTO
.
class
);
// com.gic.wechat.api.dto.qywx.DepartmentDTO qywxDepart = this.qywxDepartmentApiService.getSelfDepartmentById(qwDTO.getDkCorpid(), secretSetting.getSecretVal(), Integer.valueOf(dataId),qwDTO.getUrlHost()) ;
if
(
null
==
qywxDepart
)
{
dealException
(
dealParamMqDTO
.
getTaskId
(),
dealParamMqDTO
.
getData
(),
dataPre
.
getEnterpriseId
(),
"查询企微部门异常"
);
return
;
...
...
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