Commit ab80b9b8 by 阳浪

活动导出

parent 448ac294
......@@ -137,7 +137,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.submitTime desc
order by tb.create_time desc,t.submitTime desc
</if>
<if test="state == 2">
select
......@@ -173,7 +173,7 @@
and <![CDATA[ tb.end_time > #{now} ]]>and <![CDATA[ tb.start_time < #{now} ]]> and ( answer.id is null or
answer.finish = 0)
group by tb.id
order by tb.end_time
order by tb.create_time desc,tb.end_time
</if>
<if test="state == null">
......@@ -222,7 +222,7 @@
</if>
group by tb.id
)t
order by t.endTime desc,id
order by tb.create_time desc,t.endTime desc,id
</if>
</select>
......@@ -384,7 +384,9 @@
and <![CDATA[ tb.end_time > #{now} ]]> and answer.id is not null and answer.finish = 1
group by tb.id
)t
order by t.submitTime desc
order by tb.create_time desc
-- order by t.submitTime desc
</if>
<if test="state == 2">
select
......@@ -418,7 +420,8 @@
and <![CDATA[ tb.end_time > #{now} ]]>and <![CDATA[ tb.start_time < #{now} ]]> and ( answer.id is null or
answer.finish = 0)
group by tb.id
order by tb.end_time
order by tb.create_time desc
-- order by tb.end_time
</if>
<if test="state == null">
......@@ -439,6 +442,7 @@
and tb.biz_type=#{bizType}
</if>
group by tb.id
order by tb.create_time desc
</if>
)ttt
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment