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
48202629
Commit
48202629
authored
Jun 11, 2024
by
徐高华
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
企微托管账号
parent
b0ae4667
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
QywxOpenController.java
...haoban/manage/web/controller/open/QywxOpenController.java
+7
-1
No files found.
haoban-manage3-web/src/main/java/com/gic/haoban/manage/web/controller/open/QywxOpenController.java
View file @
48202629
...
@@ -5,6 +5,7 @@ import com.gic.api.base.commons.Page;
...
@@ -5,6 +5,7 @@ import com.gic.api.base.commons.Page;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.api.base.commons.ServiceResponse
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.util.PageHelperUtils
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.commons.webapi.reponse.RestResponse
;
import
com.gic.enterprise.api.service.EnterpriseService
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.base.api.common.pojo.dto.WebLoginDTO
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
import
com.gic.haoban.common.utils.AuthWebRequestUtil
;
import
com.gic.haoban.common.utils.EntityUtil
;
import
com.gic.haoban.common.utils.EntityUtil
;
...
@@ -43,6 +44,8 @@ public class QywxOpenController {
...
@@ -43,6 +44,8 @@ public class QywxOpenController {
private
StaffApiService
staffApiService
;
private
StaffApiService
staffApiService
;
@Autowired
@Autowired
private
StaffClerkRelationApiService
staffClerkRelationApiService
;
private
StaffClerkRelationApiService
staffClerkRelationApiService
;
@Autowired
private
EnterpriseService
enterpriseService
;
/**
/**
* 托管列表
* 托管列表
...
@@ -53,14 +56,17 @@ public class QywxOpenController {
...
@@ -53,14 +56,17 @@ public class QywxOpenController {
public
RestResponse
<
Page
<
OpenStaffVO
>>
page
(
@RequestBody
OpenStaffQO
qo
)
{
public
RestResponse
<
Page
<
OpenStaffVO
>>
page
(
@RequestBody
OpenStaffQO
qo
)
{
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
WebLoginDTO
loginUser
=
AuthWebRequestUtil
.
getLoginUser
();
OpenStaffPageQDTO
qdto
=
EntityUtil
.
changeEntityByJSON
(
OpenStaffPageQDTO
.
class
,
qo
)
;
OpenStaffPageQDTO
qdto
=
EntityUtil
.
changeEntityByJSON
(
OpenStaffPageQDTO
.
class
,
qo
)
;
String
enterpriseId
=
loginUser
.
getEnterpriseId
()
;
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
qdto
.
setWxEnterpriseId
(
loginUser
.
getWxEnterpriseId
());
qdto
.
setEnterpriseId
(
loginUser
.
getEnterpriseId
()
);
qdto
.
setEnterpriseId
(
enterpriseId
);
BasePageInfo
basePageInfo
=
new
BasePageInfo
()
;
BasePageInfo
basePageInfo
=
new
BasePageInfo
()
;
basePageInfo
.
setPageNum
(
qo
.
getPageNum
());
basePageInfo
.
setPageNum
(
qo
.
getPageNum
());
basePageInfo
.
setPageSize
(
qo
.
getPageSize
());
basePageInfo
.
setPageSize
(
qo
.
getPageSize
());
ServiceResponse
<
Page
<
OpenStaffDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
ServiceResponse
<
Page
<
OpenStaffDTO
>>
pageResp
=
this
.
openStaffApiService
.
page
(
qdto
,
basePageInfo
);
Page
<
OpenStaffDTO
>
page
=
pageResp
.
getResult
();
Page
<
OpenStaffDTO
>
page
=
pageResp
.
getResult
();
Page
<
OpenStaffVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
OpenStaffVO
.
class
);
Page
<
OpenStaffVO
>
retPage
=
PageHelperUtils
.
changePageToCurrentPage
(
page
,
OpenStaffVO
.
class
);
if
(
CollectionUtils
.
isNotEmpty
(
retPage
.
getResult
()))
{
}
return
RestResponse
.
successResult
(
retPage
);
return
RestResponse
.
successResult
(
retPage
);
}
}
...
...
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