Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
dj
/
rop-dj-supervisor-mini
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d7767f0a
authored
Mar 13, 2026
by
范富荣
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加查询督导任务管理模块接口
1 parent
1760aa33
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
3 deletions
src/main/java/cn/com/glsx/dj/supervisor/controller/SupervisorTaskInfoController.java
src/main/java/cn/com/glsx/dj/supervisor/controller/SupervisorTaskInfoController.java
View file @
d7767f0
...
...
@@ -8,6 +8,7 @@ import cn.com.glsx.dj.supervisor.dto.AudioReceptionDTO;
import
cn.com.glsx.dj.supervisor.dto.AudioSummaryDTO
;
import
cn.com.glsx.dj.supervisor.dto.SupervisorTaskDTO
;
import
cn.com.glsx.dj.supervisor.dto.SupervisorTaskQueryDTO
;
import
cn.com.glsx.dj.supervisor.dto.SupervisorTeamOverviewDTO
;
import
cn.com.glsx.dj.supervisor.model.SupervisorAudioReviewInfo
;
import
cn.com.glsx.dj.supervisor.remote.SupervisorTaskInfoRemote
;
import
cn.com.glsx.dj.supervisor.request.SupervisorAudioSubmitRequest
;
...
...
@@ -16,6 +17,7 @@ import cn.com.glsx.dj.supervisor.request.SupervisorTaskSubmitRequest;
import
cn.com.glsx.dj.supervisor.util.CommonUtil
;
import
cn.com.glsx.framework.core.beans.rpc.RpcPagination
;
import
cn.com.glsx.framework.core.beans.rpc.RpcResponse
;
import
cn.com.glsx.framework.core.enums.DefaultErrorEnum
;
import
cn.com.glsx.framework.rop.response.RopResponse
;
import
com.rop.AbstractRopRequest
;
import
com.rop.annotation.NeedInSessionType
;
...
...
@@ -135,6 +137,7 @@ public class SupervisorTaskInfoController {
/**
* 查询督导管理的员工列表
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.mini.list.flightSupervisionStaff"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"查询督导管理员工列表"
)
public
RopResponse
<
List
<
StaffBaseInfoDTO
>>
listFlightSupervisionStaff
(
AbstractRopRequest
request
)
{
List
<
Integer
>
idList
=
CommonUtil
.
getFlightSupervisionMerchantIdList
(
null
);
...
...
@@ -236,8 +239,32 @@ public class SupervisorTaskInfoController {
return
RopResponse
.
success
(
result
);
}
/**
* 查询督导团队概况信息
*/
@ServiceMethod
(
method
=
"dj.api.supervisor.mini.get.teamOverview"
,
needInSession
=
NeedInSessionType
.
YES
)
@ApiOperation
(
"查询督导团队概况信息"
)
public
RopResponse
<
SupervisorTeamOverviewDTO
>
getTeamOverview
(
SupervisorTaskQueryRequest
request
)
{
// 1. 获取当前登录用户信息
LoginUserInfoResponse
loginUserInfo
=
CommonUtil
.
getLoginUserInfo
();
if
(
loginUserInfo
==
null
)
{
return
RopResponse
.
error
(
DefaultErrorEnum
.
SERVER_ERROR
,
"用户未登录"
);
}
SupervisorTaskQueryDTO
param
=
CommonUtil
.
convertRequest
(
SupervisorTaskQueryDTO
.
class
);
// 2. 查询督导管理的门店id列表
List
<
Integer
>
merchantIdList
=
CommonUtil
.
getFlightSupervisionMerchantIdList
(
loginUserInfo
.
getUuid
());
param
.
setMerchantIdList
(
merchantIdList
);
int
shopCount
=
merchantIdList
!=
null
&&
!
CommonUtil
.
NO_PERMISSION_LIST
.
equals
(
merchantIdList
)
?
merchantIdList
.
size
()
:
0
;
// 3. 调用远程接口查询团队概况信息
RpcResponse
<
SupervisorTeamOverviewDTO
>
response
=
supervisorTaskInfoRemote
.
getTeamOverview
(
param
);
if
(
response
.
hasError
())
{
return
RopResponse
.
error
(
response
.
getError
(),
response
.
getMessage
());
}
else
{
SupervisorTeamOverviewDTO
result
=
response
.
getResult
();
result
.
setShopCount
(
shopCount
);
return
RopResponse
.
success
(
result
);
}
}
}
Write
Preview
Markdown
is supported
Attach a file
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 post a comment