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
haoban3.0
haoban-manage3.0
Commits
2b0b86da
Commit
2b0b86da
authored
Jul 27, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微区分类型
parent
efe10753
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
15 deletions
+15
-15
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+1
-1
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+5
-5
QywxDeptSyncOperation.java
...gic/haoban/manage/service/task/QywxDeptSyncOperation.java
+9
-9
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
2b0b86da
...
...
@@ -80,7 +80,7 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
});
}
qw
.
setSelfCorpid
(
wxEnterprise
.
getCorpid
());
logger
.
info
(
"企微
企业ID
={}"
,
JSON
.
toJSON
(
qw
));
logger
.
info
(
"企微
所有corpid信息
={}"
,
JSON
.
toJSON
(
qw
));
return
qw
;
}
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/StaffApiServiceImpl.java
View file @
2b0b86da
...
...
@@ -317,19 +317,19 @@ public class StaffApiServiceImpl implements StaffApiService {
res
.
setCode
(
4
);
return
res
;
}
String
staffThirdWxEnterpriseId
=
config
.
getStaffThirdWxEnterpriseId
();
UserDTO
user
=
null
;
if
(
staffThirdWxEnterpriseId
.
contains
(
corpid
))
{
WxEnterpriseQwDTO
wxInfo
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
if
(
wxInfo
.
getWxSecurityType
()==
4
)
{
user
=
qywxUserApiService
.
getWorkWxUser
(
corpid
,
config
.
getWxSuiteid
(),
userId
);
UserDTO
userSelf
=
qywxUserApiService
.
getSelfWorkWxUser
(
corpid
,
secretSetting
.
getSecretVal
(),
user
.
getOpen_userid
());
logger
.
info
(
"成员详情(第三方)={}"
,
JSON
.
toJSONString
(
user
))
;
UserDTO
userSelf
=
qywxUserApiService
.
getSelfWorkWxUser
(
wxInfo
.
getDkCorpid
(),
secretSetting
.
getSecretVal
(),
user
.
getOpen_userid
());
if
(
user
!=
null
&&
userSelf
!=
null
)
{
user
.
setName
(
userSelf
.
getName
());
}
}
else
{
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
corpid
,
secretSetting
.
getSecretVal
(),
userId
);
logger
.
info
(
"成员详情(代开)={}"
,
JSON
.
toJSONString
(
user
))
;
}
if
(
null
==
user
)
{
logger
.
info
(
"企业微信用户不存在:{}:{}"
,
wxEnterpriseId
,
userId
);
res
.
setMessage
(
"企业微信用户不存在"
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/QywxDeptSyncOperation.java
View file @
2b0b86da
...
...
@@ -171,20 +171,20 @@ public class QywxDeptSyncOperation implements BaseSyncOperation {
String
pDataId
=
preData
.
getpDataId
();
if
(
"0"
.
equals
(
pDataId
))
{
//根级部门
List
<
UserDTO
>
list
=
this
.
qywxUserApiService
.
listSelfDepartmentUser
(
wxEnterpriseDTO
.
getCorpid
(),
secretSetting
.
getSecretVal
(),
dataId
,
1
);
List
<
UserDTO
>
list
=
null
;
WxEnterpriseQwDTO
wxInfo
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
logger
.
info
(
"第三方的通讯录={}"
,
JSON
.
toJSONString
(
wxInfo
));
logger
.
info
(
"第三方的通讯录={}"
,
JSON
.
toJSONString
(
this
.
qywxUserApiService
.
listDepartmentUser
(
wxEnterpriseDTO
.
getCorpid
(),
config
.
getWxSuiteid
(),
dataId
,
1
)))
;
logger
.
info
(
"第三方的通讯录={}"
,
JSON
.
toJSONString
(
this
.
qywxUserApiService
.
listDepartmentUser
(
wxInfo
.
getCorpid
(),
config
.
getWxSuiteid
(),
dataId
,
1
)))
;
logger
.
info
(
"第三方的通讯录={}"
,
JSON
.
toJSONString
(
this
.
qywxUserApiService
.
listDepartmentUser
(
wxInfo
.
getDkCorpid
(),
config
.
getWxSuiteid
(),
dataId
,
1
)))
;
if
(
wxInfo
.
getWxSecurityType
()==
4
)
{
list
=
this
.
qywxUserApiService
.
listDepartmentUser
(
wxEnterpriseDTO
.
getCorpid
(),
config
.
getWxSuiteid
(),
dataId
,
1
)
;
logger
.
info
(
"通讯录(第三方)={}"
,
JSON
.
toJSONString
(
list
))
;
}
else
{
list
=
this
.
qywxUserApiService
.
listSelfDepartmentUser
(
wxEnterpriseDTO
.
getCorpid
(),
secretSetting
.
getSecretVal
(),
dataId
,
1
);
logger
.
info
(
"通讯录(代开)={}"
,
JSON
.
toJSONString
(
list
))
;
}
if
(
null
==
list
)
{
logger
.
info
(
"微信获取部门成员异常:{},{}"
,
taskId
,
dataId
);
return
;
}
logger
.
info
(
"
是否已经进来了,进来
"
);
logger
.
info
(
"
获取部门列表
"
);
//预处理门店 写入预处理表
if
(
CollectionUtils
.
isNotEmpty
(
list
))
{
List
<
String
>
dataList
=
preDealService
.
listDataIdByTaskIdAndDataType
(
taskId
,
PreDealTypeEnum
.
clerk
.
getVal
());
...
...
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