Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
research-project
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
research-project
Commits
9440f548
Commit
9440f548
authored
Sep 18, 2025
by
“Kongxiangkun”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
投票列表增加styleType字段
parent
2debf90b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
cloud-research-api/src/main/java/com/yizhi/research/application/vo/domain/VoteRankingListVo.java
+3
-0
cloud-research-service/src/main/java/com/yizhi/research/application/service/impl/TrResearchQuestionServiceImpl.java
+10
-1
No files found.
cloud-research-api/src/main/java/com/yizhi/research/application/vo/domain/VoteRankingListVo.java
View file @
9440f548
...
...
@@ -34,4 +34,7 @@ public class VoteRankingListVo {
@ApiModelProperty
(
value
=
"true=已投票;false未投票"
)
private
Boolean
answerState
;
@ApiModelProperty
(
value
=
"展示样式"
)
private
Integer
styleType
;
}
cloud-research-service/src/main/java/com/yizhi/research/application/service/impl/TrResearchQuestionServiceImpl.java
View file @
9440f548
...
...
@@ -1162,11 +1162,20 @@ public class TrResearchQuestionServiceImpl extends ServiceImpl<TrResearchQuestio
Long
siteId
=
context
.
getSiteId
();
LOG
.
info
(
"投票列表入参, companyId:{}, siteId:{}, researchId:{}, start:{}, range:{}"
,
companyId
,
siteId
,
researchId
,
(
pageNo
-
1
)
*
pageSize
,
pageSize
);
VoteRankingVo
voteRankingVo
=
researchQuestionMapper
.
getVoteResult
(
companyId
,
siteId
,
researchId
,
context
.
getAccountId
(),
false
,
(
pageNo
-
1
)
*
pageSize
,
pageSize
);
if
(
voteRankingVo
!=
null
){
LOG
.
info
(
"投票列表返回, voteRankingVo:{}"
,
JSONUtil
.
toJsonStr
(
voteRankingVo
));
if
(
voteRankingVo
!=
null
){
Integer
finish
=
trResearchAnswerMapper
.
getResearchAnsweFinish
(
context
.
getAccountId
(),
researchId
);
if
(
finish
!=
null
&&
finish
==
1
){
voteRankingVo
.
setVoteNum
(
0
);
}
if
(!
CollectionUtils
.
isEmpty
(
voteRankingVo
.
getRankingList
()))
{
Research
research
=
researchMapper
.
selectById
(
researchId
);
if
(
research
!=
null
)
{
voteRankingVo
.
getRankingList
().
forEach
(
v
->
{
v
.
setStyleType
(
research
.
getStyleType
());
});
}
}
}
return
voteRankingVo
;
}
...
...
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