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
ad133b1a
Commit
ad133b1a
authored
Oct 09, 2022
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
2e990d84
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
5 deletions
+12
-5
QwFriendApiService.java
...com/gic/haoban/manage/api/service/QwFriendApiService.java
+4
-1
QwFriendApiServiceImpl.java
...nage/service/service/out/impl/QwFriendApiServiceImpl.java
+6
-2
TestController.java
.../com/gic/haoban/manage/web/controller/TestController.java
+2
-2
No files found.
haoban-manage3-api/src/main/java/com/gic/haoban/manage/api/service/QwFriendApiService.java
View file @
ad133b1a
...
...
@@ -28,8 +28,11 @@ public interface QwFriendApiService {
* @return
* @throws
*/
public
ServiceResponse
<
Map
<
String
,
String
>>
pendingIdCheck
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxaOpenid
);
public
ServiceResponse
<
Map
<
String
,
String
>>
pendingIdCheck
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxaUnionid
,
String
wxaOpenid
);
public
ServiceResponse
<
Map
<
String
,
String
>>
pendingIdCheck
(
String
enterpriseId
);
/**
*
* @Title: getPendingIdByUnionid
...
...
haoban-manage3-service/src/main/java/com/gic/haoban/manage/service/service/out/impl/QwFriendApiServiceImpl.java
View file @
ad133b1a
...
...
@@ -46,10 +46,14 @@ public class QwFriendApiServiceImpl implements QwFriendApiService {
@Autowired
private
Config
config
;
@Override
public
ServiceResponse
<
Map
<
String
,
String
>>
pendingIdCheck
(
String
enterpriseId
)
{
return
null
;
}
@Override
public
ServiceResponse
<
Map
<
String
,
String
>>
pendingIdCheck
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxaOpenid
)
{
String
wxaUnionid
,
String
wxaOpenid
)
{
ServiceResponse
<
WxEnterpriseQwDTO
>
corpidResp
=
this
.
checkAndGetCorpid
(
enterpriseId
);
if
(!
corpidResp
.
isSuccess
())
{
return
ServiceResponse
.
failure
(
corpidResp
.
getCode
(),
corpidResp
.
getMessage
());
...
...
@@ -78,7 +82,7 @@ public class QwFriendApiServiceImpl implements QwFriendApiService {
retMap
.
put
(
"wxCode"
,
wxCode
);
sb
.
append
(
"服务号-"
).
append
(
result
).
append
(
","
);
ServiceResponse
<
PendingIdDTO
>
wxaResp
=
this
.
qywxExternalUserService
.
unionidToExternalUserid
(
corpid
,
suiteid
,
u
nionid
,
wxaOpenid
,
subjectType
);
wxaU
nionid
,
wxaOpenid
,
subjectType
);
if
(
wxaResp
.
isSuccess
())
{
result
=
"ok"
;
}
else
{
...
...
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/TestController.java
View file @
ad133b1a
...
...
@@ -80,8 +80,8 @@ public class TestController extends WebBaseController {
@RequestMapping
(
"/pending-check"
)
public
HaobanResponse
pendingChec
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxaOpenid
)
{
return
this
.
resultResponse
(
HaoBanErrCode
.
ERR_0
,
this
.
qwFriendApiService
.
pendingIdCheck
(
enterpriseId
,
unionid
,
openid
,
wxaOpenid
));
public
HaobanResponse
pendingChec
(
String
enterpriseId
,
String
unionid
,
String
openid
,
String
wxa
Unionid
,
String
wxa
Openid
)
{
return
this
.
resultResponse
(
HaoBanErrCode
.
ERR_0
,
this
.
qwFriendApiService
.
pendingIdCheck
(
enterpriseId
,
unionid
,
openid
,
wxa
Unionid
,
wxa
Openid
));
}
@RequestMapping
(
"/get-pending-times"
)
...
...
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