产品角色等
This commit is contained in:
@@ -136,6 +136,8 @@
|
||||
s.ys_user,
|
||||
s.task_count,
|
||||
s.ys_date,
|
||||
s.inner_ys_flag,
|
||||
s.product_user,
|
||||
su.title userStoryName,
|
||||
su.id userStoryId,
|
||||
ps.title parentName,
|
||||
@@ -160,6 +162,10 @@
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'ZGW' ">
|
||||
and s.assignedTo= #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WDCP' ">
|
||||
and s.product_user= #{qo.userName}
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WCJ' ">
|
||||
and s.openedBy= #{qo.userName}
|
||||
</if>
|
||||
@@ -226,6 +232,9 @@
|
||||
<if test="qo.title != null and qo.title != '' ">
|
||||
and s.title like concat('%', #{qo.title}, '%')
|
||||
</if>
|
||||
<if test="qo.productUser != null and qo.productUser != '' ">
|
||||
and s.product_user like concat('%', #{qo.productUser}, '%')
|
||||
</if>
|
||||
<if test="qo.module != null and qo.module != '' ">
|
||||
and s.module = #{qo.module}
|
||||
</if>
|
||||
@@ -364,6 +373,9 @@
|
||||
s.ys_date,
|
||||
s.devel_plan_end_time,
|
||||
s.test_plan_end_time,
|
||||
s.inner_ys_flag,
|
||||
s.product_user,
|
||||
s.test_user,
|
||||
pt.name productName
|
||||
from zt_story s
|
||||
|
||||
@@ -429,7 +441,12 @@
|
||||
<if test="qo.name != null and qo.name != '' ">
|
||||
and s.title like concat('%', #{qo.name}, '%')
|
||||
</if>
|
||||
|
||||
<if test="qo.productUser != null and qo.productUser != '' ">
|
||||
and s.product_user like concat('%', #{qo.productUser}, '%')
|
||||
</if>
|
||||
<if test="qo.testUser != null and qo.testUser != '' ">
|
||||
and s.assignedTo like concat('%', #{qo.testUser}, '%')
|
||||
</if>
|
||||
<if test="qo.productName != null and qo.productName != '' ">
|
||||
and pt.name like concat('%', #{qo.productName}, '%')
|
||||
</if>
|
||||
@@ -474,7 +491,12 @@
|
||||
and s.status ='reviewing'
|
||||
and v.result = ''
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WDCP' ">
|
||||
and s.product_user = #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WCC' ">
|
||||
and s.assignedTo = #{qo.userName}
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal == 'JH' ">
|
||||
and s.status = 'active'
|
||||
@@ -1317,4 +1339,25 @@
|
||||
and (spc.spec like concat('%', #{keyword}, '%') or spc.verify like concat('%', #{keyword}, '%') or st.title like concat('%', #{keyword}, '%') ) order by id desc )
|
||||
</select>
|
||||
|
||||
|
||||
<select id="storyReleaseOnTimeByProducts" resultType="java.util.Map">
|
||||
select (SELECT count(1) waitRelease from zt_story
|
||||
WHERE plan_end_date >=#{startTime} and plan_end_date <= #{endTime} AND product in
|
||||
<foreach collection="pIds" item="id" index="index"
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>) planReleaseStoryNum,
|
||||
(SELECT count(1) waitRelease from zt_story
|
||||
WHERE plan_end_date >=#{startTime} and plan_end_date <=#{endTime} and releasedDate >=#{startTime}
|
||||
and releasedDate <=#{endTime}
|
||||
AND product in
|
||||
<foreach collection="pIds" item="id" index="index"
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
) onTimeNum
|
||||
from dual;
|
||||
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
|
||||
@@ -140,7 +140,7 @@
|
||||
s.deliver_remark,
|
||||
s.old_status,
|
||||
s.ys_user,
|
||||
|
||||
s.product_user,
|
||||
pt.name productName from zt_story_user s LEFT JOIN zt_product pt on s.product = pt.id WHERE 1=1
|
||||
|
||||
<if test="qo.productIds != null and qo.productIds.size() > 0">
|
||||
@@ -188,9 +188,9 @@
|
||||
<if test="qo.productName != null and qo.productName != '' ">
|
||||
and pt.name like concat('%', #{qo.productName}, '%')
|
||||
</if>
|
||||
|
||||
|
||||
|
||||
<if test="qo.productUser != null and qo.productUser != '' ">
|
||||
and s.product_user like concat('%', #{qo.productUser}, '%')
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal == 'ALL' ">
|
||||
|
||||
@@ -199,10 +199,12 @@
|
||||
and s.status != 'closed'
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal == 'WDCP' ">
|
||||
and s.product_user = #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal == 'WCJ' ">
|
||||
and s.openedby= #{qo.userName}
|
||||
</if>
|
||||
|
||||
<if test="qo.id != null ">
|
||||
and s.id = #{qo.id}
|
||||
</if>
|
||||
|
||||
Reference in New Issue
Block a user