需求报表

This commit is contained in:
2026-04-24 14:58:24 +08:00
parent ea575012a8
commit 739e864699
20 changed files with 760 additions and 11 deletions
+11 -3
View File
@@ -407,7 +407,11 @@
left join zt_project pj on pstory.project = pj.id
left join zt_product pt on s.product = pt.id
left join zt_projectstory ps on s.id = ps.story
left join zt_user zu on s.ys_user = zu.account
WHERE 1=1
<if test="qo.ysUser != null and qo.ysUser != '' ">
and zu.nickname like concat('%', #{qo.ysUser}, '%')
</if>
<if test="qo.pri != null and qo.pri != '' ">
and s.pri = #{qo.pri}
</if>
@@ -417,7 +421,9 @@
<if test="qo.title != null and qo.title != '' ">
and s.title like concat('%', #{qo.title}, '%')
</if>
<if test="qo.ysUser != null and qo.ysUser != '' ">
and s.nickname like concat('%', #{qo.ysUser}, '%')
</if>
<if test="qo.searchVal != null and qo.searchVal == 'WYS' ">
and s.ys_user = #{qo.userName}
</if>
@@ -932,7 +938,7 @@
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
left join zt_user zu on s.ys_user = zu.account
<if test="qo.project != null or qo.execution != null">
left join zt_projectstory ps on s.id = ps.story
</if>
@@ -940,7 +946,9 @@
WHERE 1=1
<if test="qo.ysUser != null and qo.ysUser != '' ">
and zu.nickname like concat('%', #{qo.ysUser}, '%')
</if>
<if test="qo.testUser != null and qo.testUser != '' ">
and s.test_user like concat('%', #{qo.testUser}, '%')
</if>