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
163790aa
Commit
163790aa
authored
Jan 21, 2025
by
梅存智
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷返回类型
parent
5e3504eb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
cloud-research-service/src/main/java/com/yizhi/research/application/mapper/ResearchMapper.xml
+7
-1
No files found.
cloud-research-service/src/main/java/com/yizhi/research/application/mapper/ResearchMapper.xml
View file @
163790aa
...
@@ -577,7 +577,12 @@
...
@@ -577,7 +577,12 @@
<select
id=
"getResearchTop"
resultType=
"com.yizhi.research.application.vo.domain.ResearchVo"
>
<select
id=
"getResearchTop"
resultType=
"com.yizhi.research.application.vo.domain.ResearchVo"
>
select tb.id,tb.name,tb.image AS logo_img,tb.create_by_name,tb.create_time
select tb.id,tb.name,tb.image AS logo_img,tb.create_by_name,tb.create_time
from research tb
from research tb
where tb.site_id = #{siteId} and tb.biz_type = #{bizType} and tb.state = 1 and tb.top_up = 1 and tb.deleted = 0
where tb.site_id = #{siteId}
<if
test=
"bizType != null "
>
and tb.biz_type = #{bizType}
</if>
)
and tb.state = 1 and tb.top_up = 1 and tb.deleted = 0
order by update_time DESC
</select>
</select>
<select
id=
"selectResearchDetails"
resultType=
"com.yizhi.research.application.vo.domain.ResearchVo"
>
<select
id=
"selectResearchDetails"
resultType=
"com.yizhi.research.application.vo.domain.ResearchVo"
>
...
@@ -602,6 +607,7 @@
...
@@ -602,6 +607,7 @@
,tb.image
,tb.image
,tb.page_mode
,tb.page_mode
,tb.vote_num
,tb.vote_num
,tb.biz_type
from research tb
from research tb
left join tr_research_answer answer on answer.research_id = tb.id and answer.account_id = #{accountId} and answer.finish=1
left join tr_research_answer answer on answer.research_id = tb.id and answer.account_id = #{accountId} and answer.finish=1
left join tr_research_answer answerf on answer.research_id = tb.id and answerf.account_id = #{accountId} and answerf.finish in(0,1)
left join tr_research_answer answerf on answer.research_id = tb.id and answerf.account_id = #{accountId} and answerf.finish in(0,1)
...
...
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