看板,导出迭代,等

This commit is contained in:
2026-01-27 16:30:21 +08:00
parent 0e7e291f50
commit ea575012a8
10 changed files with 141 additions and 11 deletions
@@ -932,6 +932,12 @@
from zt_story s
left join zt_product pt on s.product = pt.id
left join zt_storyreview v on s.id = v.story and s.version = v.version
<if test="qo.project != null or qo.execution != null">
left join zt_projectstory ps on s.id = ps.story
</if>
WHERE 1=1
@@ -1000,11 +1006,15 @@
</if>
<if test="qo.project != null ">
and ps.type ='project'
and ps.project =#{qo.project}
</if>
<if test="qo.execution != null ">
and ps.type ='execution'
and ps.execution =#{qo.execution}
</if>
<if test="qo.module != null ">
and s.module =#{qo.module}
</if>
@@ -152,6 +152,15 @@
</if>
<if test="qo.execution !=null">
and s.id in (
SELECT DISTINCT st.user_story from zt_story st INNER JOIN zt_projectstory ps on st.id = ps.story and ps.type = 'execution'
WHERE st.`status` not in ('closed')
and st.user_story is not null
and ps.project = #{qo.execution}
)
</if>
<if test="qo.startDate !=null">
and s.openedDate <![CDATA[>=]]> #{qo.startDate}
</if>