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
11a128df
Commit
11a128df
authored
Aug 02, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
log
parent
4a424cf8
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
28 additions
and
18 deletions
+28
-18
WxEnterpriseQwDTO.java
...java/com/gic/haoban/manage/api/dto/WxEnterpriseQwDTO.java
+18
-10
WxEnterpriseServiceImpl.java
.../manage/service/service/impl/WxEnterpriseServiceImpl.java
+2
-2
StaffApiServiceImpl.java
.../manage/service/service/out/impl/StaffApiServiceImpl.java
+6
-4
QywxDeptSyncOperation.java
...gic/haoban/manage/service/task/QywxDeptSyncOperation.java
+2
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/dto/WxEnterpriseQwDTO.java
View file @
11a128df
...
...
@@ -12,27 +12,35 @@ public class WxEnterpriseQwDTO implements Serializable {
private
String
corpid
;
// 好办 助手
private
String
dkCorpid
;
private
String
dkSuiteId
;
// 会员小程序dk
private
String
memberCorpid
;
private
String
memberSuiteId
;
// 第三方
private
String
thirdCorpid
;
// 自建
private
String
selfCorpid
;
public
String
getDkSuiteId
()
{
return
dkSuiteId
;
}
public
int
getWxSecurityType
()
{
return
wxSecurityType
;
public
String
getMemberSuiteId
()
{
return
memberSuiteId
;
}
public
void
set
WxSecurityType
(
int
wxSecurityType
)
{
this
.
wxSecurityType
=
wxSecurityType
;
public
void
set
DkSuiteId
(
String
dkSuiteId
)
{
this
.
dkSuiteId
=
dkSuiteId
;
}
public
String
getSelfCorpid
(
)
{
return
selfCorpi
d
;
public
void
setMemberSuiteId
(
String
memberSuiteId
)
{
this
.
memberSuiteId
=
memberSuiteI
d
;
}
public
void
setSelfCorpid
(
String
selfCorpid
)
{
this
.
selfCorpid
=
selfCorpid
;
public
int
getWxSecurityType
()
{
return
wxSecurityType
;
}
public
void
setWxSecurityType
(
int
wxSecurityType
)
{
this
.
wxSecurityType
=
wxSecurityType
;
}
public
String
getWxEnterpriseId
()
{
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/impl/WxEnterpriseServiceImpl.java
View file @
11a128df
...
...
@@ -76,13 +76,13 @@ public class WxEnterpriseServiceImpl implements WxEnterpriseService {
qw
.
setThirdCorpid
(
app
.
getCorpid
());
}
else
if
(
appType
.
equals
(
3
))
{
qw
.
setDkCorpid
(
app
.
getCorpid
());
qw
.
setDkSuiteId
(
app
.
getSiteId
());
}
else
if
(
appType
.
equals
(
4
))
{
qw
.
setMemberCorpid
(
app
.
getCorpid
());
qw
.
setMemberSuiteId
(
app
.
getSiteId
());
}
});
}
qw
.
setSelfCorpid
(
wxEnterprise
.
getCorpid
());
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 @
11a128df
...
...
@@ -323,8 +323,10 @@ public class StaffApiServiceImpl implements StaffApiService {
user
=
qywxUserApiService
.
getWorkWxUser
(
corpid
,
config
.
getWxSuiteid
(),
userId
);
logger
.
info
(
"成员详情(第三方)={}"
,
JSON
.
toJSONString
(
user
))
;
UserDTO
userSelf
=
qywxUserApiService
.
getSelfWorkWxUser
(
wxInfo
.
getDkCorpid
(),
secretSetting
.
getSecretVal
(),
user
.
getOpen_userid
());
logger
.
info
(
"成员详情(代开)={}"
,
JSON
.
toJSONString
(
user
))
;
if
(
user
!=
null
&&
userSelf
!=
null
)
{
user
.
setName
(
userSelf
.
getName
());
user
.
setPosition
(
userSelf
.
getPosition
());
}
}
else
{
user
=
qywxUserApiService
.
getSelfWorkWxUser
(
corpid
,
secretSetting
.
getSecretVal
(),
userId
);
...
...
@@ -351,6 +353,10 @@ public class StaffApiServiceImpl implements StaffApiService {
}
staff
=
(
staff
==
null
?
new
TabHaobanStaff
()
:
staff
);
staff
.
setWxUserId
(
userId
);
String
openUserid
=
getOpenUserid
(
userId
,
corpid
);
if
(
StringUtils
.
isNotBlank
(
openUserid
))
{
staff
.
setWxOpenUseId
(
openUserid
);
}
staff
.
setUpdateTime
(
new
Date
());
staff
.
setStatusFlag
(
1
);
staff
.
setWxEnterpriseId
(
wxEnterpriseId
);
...
...
@@ -374,10 +380,6 @@ public class StaffApiServiceImpl implements StaffApiService {
if
(
StringUtils
.
isNotBlank
(
qr_code
))
{
staff
.
setQrCode
(
qr_code
);
}
String
openUserid
=
getOpenUserid
(
userId
,
corpid
);
if
(
StringUtils
.
isNotBlank
(
openUserid
))
{
staff
.
setWxOpenUseId
(
openUserid
);
}
//成员更改或更新
if
(
StringUtils
.
isBlank
(
staff
.
getStaffId
()))
{
logger
.
info
(
"新增成员"
);
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/task/QywxDeptSyncOperation.java
View file @
11a128df
...
...
@@ -175,10 +175,10 @@ public class QywxDeptSyncOperation implements BaseSyncOperation {
WxEnterpriseQwDTO
wxInfo
=
this
.
wxEnterpriseService
.
getQwInfo
(
wxEnterpriseId
)
;
if
(
wxInfo
.
getWxSecurityType
()==
4
)
{
list
=
this
.
qywxUserApiService
.
listDepartmentUser
(
wxEnterpriseDTO
.
getCorpid
(),
config
.
getWxSuiteid
(),
dataId
,
1
)
;
logger
.
info
(
"
通讯录(第三方)
={}"
,
JSON
.
toJSONString
(
list
))
;
logger
.
info
(
"
从(第三方)获取通讯录
={}"
,
JSON
.
toJSONString
(
list
))
;
}
else
{
list
=
this
.
qywxUserApiService
.
listSelfDepartmentUser
(
wxEnterpriseDTO
.
getCorpid
(),
secretSetting
.
getSecretVal
(),
dataId
,
1
);
logger
.
info
(
"
通讯录(代开)
={}"
,
JSON
.
toJSONString
(
list
))
;
logger
.
info
(
"
从(代开)获取通讯录
={}"
,
JSON
.
toJSONString
(
list
))
;
}
if
(
null
==
list
)
{
logger
.
info
(
"微信获取部门成员异常:{},{}"
,
taskId
,
dataId
);
...
...
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