Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cloud-web
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hqzhdj
cloud-web
Commits
fedf8cb4
Commit
fedf8cb4
authored
Dec 17, 2024
by
梅存智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投票单选、投票排行榜
parent
76ad04a4
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
1 deletions
+23
-1
cloud-web-student/src/main/java/com/yizhi/application/research/controller/ResearchController.java
+1
-1
cloud-web-student/src/main/java/com/yizhi/application/research/controller/ResearchQuestionsController.java
+22
-0
No files found.
cloud-web-student/src/main/java/com/yizhi/application/research/controller/ResearchController.java
View file @
fedf8cb4
...
...
@@ -40,7 +40,7 @@ public class ResearchController {
@ApiOperation
(
value
=
"分页查询学员能看到的调研"
,
notes
=
"分两种状态"
,
response
=
ResearchVo
.
class
)
public
Response
<
ResearchVo
>
listPage
(
@ApiParam
(
name
=
"state"
,
value
=
"状态:1已完成,2进行中"
,
required
=
false
)
@RequestParam
(
name
=
"state"
,
required
=
false
)
Integer
state
,
@ApiParam
(
name
=
"bizType"
,
value
=
"业务类型
:1调研(问卷、投票);2考试测验,默认1"
,
required
=
true
)
@RequestParam
(
name
=
"bizType"
,
defaultValue
=
"1"
)
Integer
bizType
,
@ApiParam
(
name
=
"bizType"
,
value
=
"业务类型
:1调研;2投票,为空查询所有"
,
required
=
false
)
@RequestParam
(
name
=
"bizType"
,
required
=
false
)
Integer
bizType
,
@ApiParam
(
name
=
"pageNo"
,
value
=
"跳转页数,默认第一页"
,
required
=
true
)
@RequestParam
(
name
=
"pageNo"
,
defaultValue
=
"1"
)
Integer
pageNo
,
@ApiParam
(
name
=
"pageSize"
,
value
=
"每页条数,默认20条"
,
required
=
true
)
@RequestParam
(
name
=
"pageSize"
,
defaultValue
=
"20"
)
Integer
pageSize
)
{
...
...
cloud-web-student/src/main/java/com/yizhi/application/research/controller/ResearchQuestionsController.java
View file @
fedf8cb4
...
...
@@ -16,6 +16,7 @@ import com.yizhi.research.application.vo.api.MyQuestion;
import
com.yizhi.research.application.vo.domain.ResearchVo
;
import
com.yizhi.research.application.vo.domain.TrResearchAuthorizeVo
;
import
com.yizhi.research.application.vo.domain.TrResearchQuestionVo
;
import
com.yizhi.research.application.vo.domain.VoteRankingVo
;
import
com.yizhi.util.application.constant.ReturnCode
;
import
com.yizhi.util.application.domain.Response
;
import
com.yizhi.util.application.enums.i18n.Constants
;
...
...
@@ -239,5 +240,26 @@ public class ResearchQuestionsController {
}
/**
* 获取投票结果
* @param researchId
* @return
*/
@GetMapping
(
"/getVoteResult"
)
Response
<
VoteRankingVo
>
getVoteResult
(
@RequestParam
(
"researchId"
)
Long
researchId
)
{
VoteRankingVo
result
=
researchQuestionClient
.
getVoteResult
(
researchId
);
return
Response
.
ok
(
result
);
}
/**
* 获取投票排行榜
* @param researchId
* @return
*/
@GetMapping
(
"/getVoteTop"
)
Response
<
VoteRankingVo
>
getVoteTop
(
@RequestParam
(
"researchId"
)
Long
researchId
)
{
VoteRankingVo
result
=
researchQuestionClient
.
getVoteTop
(
researchId
);
return
Response
.
ok
(
result
);
}
}
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