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
02867073
Commit
02867073
authored
Sep 09, 2025
by
lichen1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过期任务查看问卷修复
parent
0af646d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
11 deletions
+10
-11
cloud-research-api/src/main/java/com/yizhi/research/application/vo/domain/ResearchVo.java
+1
-1
cloud-research-service/src/main/java/com/yizhi/research/application/mapper/ResearchMapper.xml
+9
-10
No files found.
cloud-research-api/src/main/java/com/yizhi/research/application/vo/domain/ResearchVo.java
View file @
02867073
...
...
@@ -207,7 +207,7 @@ public class ResearchVo {
private
List
<
TrResearchAnswerVo
>
trResearchAnswerVos
;
@ApiModelProperty
(
value
=
"搜索列表显示状态:0未开始,1已完成,2进行中,3已过期,4未参加调研"
)
@ApiModelProperty
(
value
=
"搜索列表显示状态:0未开始,1已完成,2进行中,3已过期,4未参加调研
, 5已过期未调研
"
)
private
Integer
finishState
;
...
...
cloud-research-service/src/main/java/com/yizhi/research/application/mapper/ResearchMapper.xml
View file @
02867073
...
...
@@ -617,16 +617,14 @@
</select>
<select
id=
"selectResearchDetails"
resultType=
"com.yizhi.research.application.vo.domain.ResearchVo"
>
select distinct answer.submit_time as submitTime,
CASE WHEN
<![CDATA[ tb.start_time > NOW() ]]>
THEN 0 ELSE
CASE WHEN
<![CDATA[ tb.start_time >= NOW() ]]>
AND answerf.finish IS NULL THEN 4 ELSE
CASE WHEN answerf.finish=1 THEN 1 ELSE
CASE WHEN
<![CDATA[ tb.end_time < NOW() ]]>
THEN 3 ELSE
2
END
END
END
END AS finishState
<![CDATA[
select distinct answer.submit_time as submitTime,
case when tb.start_time >
NOW() then 0
when answerf.finish=1 then 1
when tb.end_time
< NOW
()
and
answerf.finish
IS
NULL
THEN
5
when
tb.start_time
<=
NOW()
and
tb.end_time
>
= NOW() and answerf.finish IS NULL THEN 4
when tb.end_time
< NOW
()
then
3
else
2
end
finishState
,tb.id
AS
id
,answer.submit_time
as
finishTime
,tb.research_no
AS
researchNo
...
...
@@ -643,5 +641,6 @@
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=
0
where
tb.id=
#{id}
and
tb.deleted =
0
and
tb.site_id =
#{siteId}
]]
>
</select>
</mapper>
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