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
25a976f8
Commit
25a976f8
authored
Jul 15, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管
parent
c58bfb72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
7 deletions
+9
-7
QywxOpenController.java
...oban/manage/web/controller/haoban/QywxOpenController.java
+9
-7
No files found.
haoban-manage3-wx/src/main/java/com/gic/haoban/manage/web/controller/haoban/QywxOpenController.java
View file @
25a976f8
...
...
@@ -37,15 +37,22 @@ public class QywxOpenController {
public
RestResponse
<
OpenStaffVO
>
getOpenStaff
(
String
staffId
,
@RequestParam
(
defaultValue
=
"0"
)
int
authFlag
)
{
ServiceResponse
<
OpenStaffDTO
>
resp
=
this
.
openStaffApiService
.
getByStaffId
(
staffId
)
;
if
(!
resp
.
isSuccess
())
{
return
RestResponse
.
successResult
(
null
)
;
return
RestResponse
.
failure
(
"9999"
,
"数据查询失败"
)
;
}
OpenStaffVO
vo
=
new
OpenStaffVO
()
;
OpenStaffDTO
dto
=
resp
.
getResult
();
String
wxEnterpriseId
=
dto
.
getWxEnterpriseId
()
;
String
enterpriseId
=
dto
.
getEnterpriseId
()
;
WxEnterpriseDTO
en
=
this
.
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
)
;
vo
.
setCorpName
(
en
.
getCorpName
());
StaffDTO
staffDTO
=
this
.
staffApiService
.
selectById
(
staffId
)
;
vo
.
setStaffName
(
staffDTO
.
getStaffName
());
vo
.
setStaffImage
(
staffDTO
.
getHeadImg
());
if
(
dto
.
getStatusFlag
()==
1
)
{
if
(
authFlag
==
1
)
{
return
RestResponse
.
failure
(
"9999"
,
"无需授权,账号托管中"
);
//return RestResponse.failure("9999","无需授权,账号托管中");
vo
.
setStatusFlag
(
1
);
return
RestResponse
.
successResult
(
vo
);
}
vo
.
setStatusFlag
(
1
);
}
else
{
...
...
@@ -64,11 +71,6 @@ public class QywxOpenController {
vo
.
setStatusFlag
(
codeResp
.
getResult
().
getStatusFlag
());
}
}
WxEnterpriseDTO
en
=
this
.
wxEnterpriseApiService
.
getOne
(
wxEnterpriseId
)
;
vo
.
setCorpName
(
en
.
getCorpName
());
StaffDTO
staffDTO
=
this
.
staffApiService
.
selectById
(
staffId
)
;
vo
.
setStaffName
(
staffDTO
.
getStaffName
());
vo
.
setStaffImage
(
staffDTO
.
getHeadImg
());
return
RestResponse
.
successResult
(
vo
);
}
}
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