提交 d6a0fca2 编写于 作者: minghao.wu's avatar minghao.wu

fix: 发布多个的情况

上级 5caeccfb
...@@ -33,7 +33,13 @@ ...@@ -33,7 +33,13 @@
from p_analysis_round from p_analysis_round
where analysis_id = #{id,jdbcType=INTEGER} where analysis_id = #{id,jdbcType=INTEGER}
and is_deleted = 0 and is_deleted = 0
and seq_no >= (select seq_no from p_analysis_round where is_published = 1 and is_deleted = 0 limit 1) and seq_no >=
(select
seq_no from p_analysis_round
where is_published = 1
and is_deleted = 0
order by seq_no desc
limit 1)
order by seq_no order by seq_no
limit 2 limit 2
</select> </select>
...@@ -54,7 +60,13 @@ ...@@ -54,7 +60,13 @@
from p_analysis_round from p_analysis_round
where analysis_id = #{id,jdbcType=INTEGER} where analysis_id = #{id,jdbcType=INTEGER}
and is_deleted = 0 and is_deleted = 0
and seq_no &lt;= (select seq_no from p_analysis_round where is_published = 1 and is_deleted = 0 limit 1) and seq_no &lt;=
(select
seq_no from p_analysis_round
where is_published = 1
and is_deleted = 0
order by seq_no desc
limit 1)
order by seq_no order by seq_no
</select> </select>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册