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
85fe4302
Commit
85fe4302
authored
Apr 20, 2023
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
自建-离职继承
parent
b2d22054
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
10 deletions
+5
-10
HandoverOperationApiServiceImpl.java
...ice/service/out/impl/HandoverOperationApiServiceImpl.java
+4
-3
DealSyncTest.java
haoban-manage3-service/src/test/java/DealSyncTest.java
+0
-6
WxEnterpriseController.java
.../haoban/manage/web/controller/WxEnterpriseController.java
+1
-1
No files found.
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/HandoverOperationApiServiceImpl.java
View file @
85fe4302
...
...
@@ -17,6 +17,7 @@ import com.gic.haoban.manage.service.entity.TabHaobanStaff;
import
com.gic.haoban.manage.service.service.HandoverService
;
import
com.gic.haoban.manage.service.service.StaffService
;
import
com.gic.haoban.manage.service.service.WxEnterpriseService
;
import
com.gic.haoban.manage.service.util.QwUtils
;
import
com.gic.mq.sdk.GicMQClient
;
import
com.gic.wechat.api.dto.qywx.QywxTransferCustomerInfoDTO
;
import
com.gic.wechat.api.dto.qywx.QywxUnassignedInfoDTO
;
...
...
@@ -104,7 +105,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
String
cursor
=
null
;
do
{
//离职成员客户列表
unassignedListDTO
=
qywxUserApiService
.
getUnassignedList
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
cursor
);
unassignedListDTO
=
qywxUserApiService
.
getUnassignedList
(
qwDTO
.
getThirdCorpid
(),
QwUtils
.
getSecret
(
qwDTO
,
config
.
getWxSuiteid
()),
cursor
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
()
);
cursor
=
unassignedListDTO
.
getNextCursor
();
if
(
CollectionUtils
.
isNotEmpty
(
unassignedListDTO
.
getInfo
()))
{
ret
.
addAll
(
unassignedListDTO
.
getInfo
());
...
...
@@ -145,7 +146,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
logger
.
info
(
"takeover is null={}"
,
dto
.
getTakeoverStaffId
());
return
;
}
QywxTransferCustomerDTO
customerDTO
=
qywxUserApiService
.
transferResult
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
handover
.
getWxUserId
(),
takeover
.
getWxUserId
(),
true
);
QywxTransferCustomerDTO
customerDTO
=
qywxUserApiService
.
transferResult
(
qwDTO
.
getThirdCorpid
(),
QwUtils
.
getSecret
(
qwDTO
,
config
.
getWxSuiteid
()),
handover
.
getWxUserId
(),
takeover
.
getWxUserId
(),
true
,
qwDTO
.
isSelf
()
,
qwDTO
.
getUrlHost
()
);
if
(
customerDTO
.
getErrcode
()
!=
0
)
{
return
;
}
...
...
@@ -255,7 +256,7 @@ public class HandoverOperationApiServiceImpl implements HandoverOperationApiServ
for
(
Map
.
Entry
<
String
,
List
<
String
>>
entry
:
handoverStaffExternalMap
.
entrySet
())
{
String
wxUserId
=
entry
.
getKey
();
List
<
String
>
list
=
entry
.
getValue
();
QywxTransferCustomerDTO
transferCustomerResp
=
qywxUserApiService
.
transferCustomer
(
qwDTO
.
getThirdCorpid
(),
config
.
getWxSuiteid
(),
wxUserId
,
takeoverUserId
,
list
);
QywxTransferCustomerDTO
transferCustomerResp
=
qywxUserApiService
.
transferCustomer
(
qwDTO
.
getThirdCorpid
(),
QwUtils
.
getSecret
(
qwDTO
,
config
.
getWxSuiteid
()),
wxUserId
,
takeoverUserId
,
list
,
qwDTO
.
isSelf
(),
qwDTO
.
getUrlHost
()
);
if
(
transferCustomerResp
.
getErrcode
()
!=
0
)
{
logger
.
info
(
"转移异常"
);
}
...
...
haoban-manage3-service/src/test/java/DealSyncTest.java
View file @
85fe4302
...
...
@@ -85,12 +85,6 @@ public class DealSyncTest {
@Test
public
void
test3
()
{
List
<
DepartmentDTO
>
department
=
qywxDepartmentApiService
.
listSelfDepartment
(
"wweac4ef962720aa12"
,
"GFu4FwkfcGFPue-qinB7ThEU4wR2SadbBH1yT5sLDzs"
,
null
);
System
.
out
.
println
(
JSONObject
.
toJSONString
(
department
));
}
@Test
public
void
test4
()
{
String
s
=
""
;
memberUnionidRelatedApiService
.
dealQywxExternalUser
(
s
);
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/WxEnterpriseController.java
View file @
85fe4302
...
...
@@ -213,7 +213,7 @@ public class WxEnterpriseController extends WebBaseController {
}
int
newType
=
this
.
wxEnterpriseApiService
.
calcSecretType
(
wxEnterpriseId
)
;
String
diff
=
""
;
if
(
null
!=
wxType
&&
wxType
.
intValue
()
!=
newType
)
{
if
(
null
!=
wxType
&&
wxType
.
intValue
()
!=
newType
&&
wxType
!=
5
)
{
diff
=
"*"
;
}
return
Arrays
.
asList
(
wxEnterpriseDTO
.
getWxCorpid
(),
wxEnterpriseDTO
.
getOpenCorpid
()).
stream
().
filter
(
str
->
StringUtils
.
isNotBlank
(
str
)).
collect
(
Collectors
.
joining
(
" / "
))
+
desc
+
diff
;
...
...
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