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
9b182af9
Commit
9b182af9
authored
Mar 10, 2025
by
阳浪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的积分
parent
ab80b9b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
8 deletions
+13
-8
cloud-research-service/src/main/java/com/yizhi/research/application/mapper/ResearchMapper.xml
+13
-8
No files found.
cloud-research-service/src/main/java/com/yizhi/research/application/mapper/ResearchMapper.xml
View file @
9b182af9
...
...
@@ -120,7 +120,8 @@
,tb.org_id AS orgId
,tb.site_id AS siteId
,tb.biz_type
,tb.page_mode
,tb.page_mode,
tb.create_time
from research tb
left join tr_research_answer answer on answer.research_id = tb.id and answer.account_id = #{accountId}
where
...
...
@@ -137,7 +138,7 @@
and
<![CDATA[ tb.end_time > #{now} ]]>
and answer.id is not null and answer.finish = 1
group by tb.id
)t
order by t
b
.create_time desc,t.submitTime desc
order by t.create_time desc,t.submitTime desc
</if>
<if
test=
"state == 2"
>
select
...
...
@@ -156,7 +157,8 @@
,tb.org_id AS orgId
,tb.site_id AS siteId
,tb.biz_type
,tb.page_mode
,tb.page_mode,
tb.create_time
from research tb
left join tr_research_answer answer on answer.research_id = tb.id and answer.account_id = #{accountId}
where
...
...
@@ -203,7 +205,8 @@
,tb.site_id AS siteId
,tb.image
,tb.biz_type
,tb.page_mode
,tb.page_mode,
tb.create_time
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 answerf on answer.research_id = tb.id and answerf.account_id = #{accountId} and answerf.finish in(0,1)
...
...
@@ -222,7 +225,7 @@
</if>
group by tb.id
)t
order by t
b
.create_time desc,t.endTime desc,id
order by t.create_time desc,t.endTime desc,id
</if>
</select>
...
...
@@ -367,7 +370,8 @@
,tb.deleted AS deleted
,tb.company_id AS companyId
,tb.org_id AS orgId
,tb.site_id AS siteId
,tb.site_id AS siteId,
tb.create_time
from research tb
left join tr_research_answer answer on answer.research_id = tb.id and answer.account_id = #{accountId}
where
...
...
@@ -385,7 +389,7 @@
group by tb.id
)t
order by t
b
.create_time desc
order by t.create_time desc
-- order by t.submitTime desc
</if>
<if
test=
"state == 2"
>
...
...
@@ -403,7 +407,8 @@
,tb.deleted AS deleted
,tb.company_id AS companyId
,tb.org_id AS orgId
,tb.site_id AS siteId
,tb.site_id AS siteId,
tb.create_time
from research tb
left join tr_research_answer answer on answer.research_id = tb.id and answer.account_id = #{accountId}
where
...
...
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