验收产品,测试人开发
This commit is contained in:
@@ -158,7 +158,13 @@
|
||||
</if>
|
||||
<if test="qo.searchVal == 'WGB' ">
|
||||
and s.status != 'closed'
|
||||
</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 == 'WCS' ">
|
||||
and s.test_user = #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'ZGW' ">
|
||||
and s.assignedTo= #{qo.userName}
|
||||
@@ -280,9 +286,14 @@
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
</if>
|
||||
|
||||
<if test="qo.statusList != null and qo.statusList.size() > 0">
|
||||
and s.status in
|
||||
<foreach collection="qo.statusList" item="id" index="index"
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
group by s.id
|
||||
|
||||
|
||||
@@ -382,38 +393,12 @@
|
||||
pt.name productName
|
||||
from zt_story s
|
||||
|
||||
left join zt_storyreview v on s.id = v.story and s.version = v.version
|
||||
left join zt_projectstory pstory on s.id = pstory.story and pstory.`type` = 'project'
|
||||
left join zt_project pj on pstory.project = pj.id
|
||||
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_projectstory pstory on s.id = pstory.story and pstory.`type` = 'project'
|
||||
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
|
||||
WHERE 1=1
|
||||
|
||||
|
||||
<!-- <if test="qo.startDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[>=]]> #{qo.startDate}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="qo.endDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[<=]]> #{qo.endDate}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="qo.startDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[>=]]> #{qo.startDate}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="qo.endDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[<=]]> #{qo.endDate}-->
|
||||
<!-- </if>-->
|
||||
<if test="qo.testUser != null and qo.testUser != '' ">
|
||||
and s.test_user like concat('%', #{qo.testUser}, '%')
|
||||
</if>
|
||||
<if test="qo.productUser != null and qo.productUser != '' ">
|
||||
and s.product_user like concat('%', #{qo.productUser}, '%')
|
||||
</if>
|
||||
<!-- <if test="qo.startDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[>=]]> #{qo.startDate}-->
|
||||
<!-- </if>-->
|
||||
<!-- <if test="qo.endDate !=null">-->
|
||||
<!-- and s.openedDate <![CDATA[<=]]> #{qo.endDate}-->
|
||||
<!-- </if>-->
|
||||
WHERE 1=1
|
||||
<if test="qo.pri != null and qo.pri != '' ">
|
||||
and s.pri = #{qo.pri}
|
||||
</if>
|
||||
@@ -425,7 +410,7 @@
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WYS' ">
|
||||
and s.ys_user = #{qo.userName}
|
||||
and s.ys_user = #{qo.userName}
|
||||
</if>
|
||||
|
||||
<if test="qo.stage != null and qo.stage != '' ">
|
||||
@@ -450,47 +435,48 @@
|
||||
<if test="qo.name != null and qo.name != '' ">
|
||||
and s.title like concat('%', #{qo.name}, '%')
|
||||
</if>
|
||||
|
||||
<if test="qo.testUser != null and qo.testUser != '' ">
|
||||
and s.test_user like concat('%', #{qo.testUser}, '%')
|
||||
</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}, '%')
|
||||
and pt.name like concat('%', #{qo.productName}, '%')
|
||||
</if>
|
||||
|
||||
<if test="qo.project != null ">
|
||||
and ps.project =#{qo.project}
|
||||
and ps.type= 'project'
|
||||
</if>
|
||||
<if test="qo.execution != null ">
|
||||
and ps.project =#{qo.execution}
|
||||
and ps.type= 'execution'
|
||||
</if>
|
||||
<if test="qo.moduleId != null ">
|
||||
and s.module =#{qo.moduleId}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'ALL' ">
|
||||
<if test="qo.project != null ">
|
||||
and ps.project =#{qo.project}
|
||||
and ps.type= 'project'
|
||||
</if>
|
||||
<if test="qo.execution != null ">
|
||||
and ps.project =#{qo.execution}
|
||||
and ps.type= 'execution'
|
||||
</if>
|
||||
<if test="qo.moduleId != null ">
|
||||
and s.module =#{qo.moduleId}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'ALL' ">
|
||||
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WGB' ">
|
||||
and s.status !='closed'
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'ZGW' ">
|
||||
and s.assignedTo = #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WGB' ">
|
||||
and s.status !='closed'
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'ZGW' ">
|
||||
and s.assignedTo = #{qo.userName}
|
||||
</if>
|
||||
|
||||
<if test="qo.kfz == 1 ">
|
||||
<if test="qo.userName != null and qo.userName != '' ">
|
||||
|
||||
and
|
||||
(s.assignedTo = #{qo.userName}
|
||||
or s.openedBy = #{qo.userName}
|
||||
)
|
||||
</if>
|
||||
|
||||
<if test="qo.kfz == 1 ">
|
||||
<if test="qo.userName != null and qo.userName != '' ">
|
||||
|
||||
and
|
||||
(s.assignedTo = #{qo.userName}
|
||||
or s.openedBy = #{qo.userName}
|
||||
)
|
||||
</if>
|
||||
|
||||
</if>
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WCJ' ">
|
||||
and s.openedBy = #{qo.userName}
|
||||
@@ -503,6 +489,9 @@
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WDCP' ">
|
||||
and s.product_user = #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WCS' ">
|
||||
and s.test_user = #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WCC' ">
|
||||
and s.assignedTo = #{qo.userName}
|
||||
</if>
|
||||
@@ -522,7 +511,7 @@
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal == 'WZP' ">
|
||||
and s.status = '11'
|
||||
and s.status = '11'
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal == 'WPS' ">
|
||||
@@ -533,10 +522,12 @@
|
||||
<if test="qo.searchVal == 'PSZ' ">
|
||||
and s.status = 'reviewing'
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal == 'WYS' ">
|
||||
and s.ys_user = #{qo.userName}
|
||||
</if>
|
||||
<if test="qo.searchVal == 'DYS' ">
|
||||
|
||||
and ( s.stage = 'released'
|
||||
and ( s.stage = 'released'
|
||||
and s.ys_flag =0)
|
||||
or (s.stage = 'verified' and s.ys_flag =2)
|
||||
</if>
|
||||
@@ -548,53 +539,53 @@
|
||||
|
||||
<if test="qo.searchCode != null and qo.searchCode != '' ">
|
||||
|
||||
-- //项目名称
|
||||
-- //项目名称
|
||||
<if test="qo.searchCode=='xmmc' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and pj.name like concat('%', #{qo.searchValue}, '%')
|
||||
and pj.name like concat('%', #{qo.searchValue}, '%')
|
||||
</if>
|
||||
-- 项目id
|
||||
-- 项目id
|
||||
<if test="qo.searchCode=='xmid' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and pj.id =#{qo.searchValue}
|
||||
and pj.id =#{qo.searchValue}
|
||||
</if>
|
||||
|
||||
-- //需求名称
|
||||
-- //需求名称
|
||||
<if test="qo.searchCode=='xqmc' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.title like concat('%', #{qo.searchValue}, '%')
|
||||
and s.title like concat('%', #{qo.searchValue}, '%')
|
||||
</if>
|
||||
-- 需求id
|
||||
-- 需求id
|
||||
<if test="qo.searchCode=='xqid' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.id =#{qo.searchValue}
|
||||
and s.id =#{qo.searchValue}
|
||||
</if>
|
||||
|
||||
-- 状态
|
||||
-- 状态
|
||||
<if test="qo.searchCode=='zt' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.stage =#{qo.searchValue}
|
||||
and s.stage =#{qo.searchValue}
|
||||
</if>
|
||||
-- 项目描述
|
||||
-- 项目描述
|
||||
<if test="qo.searchCode=='xmms' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and sp.`spec` =#{qo.searchValue}
|
||||
and sp.`spec` =#{qo.searchValue}
|
||||
</if>
|
||||
-- 负责人
|
||||
-- 负责人
|
||||
|
||||
<if test="qo.searchCode=='fzr' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.assignedTo =#{qo.searchValue}
|
||||
and s.assignedTo =#{qo.searchValue}
|
||||
</if>
|
||||
|
||||
<if test="qo.searchCode=='jhwc' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.plan_end_date ${qo.searchValue}
|
||||
and s.plan_end_date ${qo.searchValue}
|
||||
</if>
|
||||
|
||||
<if test="qo.searchCode=='sjks' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.start_date ${qo.searchValue}
|
||||
and s.start_date ${qo.searchValue}
|
||||
</if>
|
||||
<if test="qo.searchCode=='sjwc' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.end_date ${qo.searchValue}
|
||||
and s.end_date ${qo.searchValue}
|
||||
</if>
|
||||
<if test="qo.searchCode=='yscj' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.openedBy = #{qo.searchValue}
|
||||
and s.openedBy = #{qo.searchValue}
|
||||
</if>
|
||||
<if test="qo.searchCode=='ysgb' and qo.searchValue != null and qo.searchValue != '' ">
|
||||
and s.closedBy = #{qo.searchValue}
|
||||
and s.closedBy = #{qo.searchValue}
|
||||
</if>
|
||||
</if>
|
||||
|
||||
@@ -613,7 +604,13 @@
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
</if>
|
||||
<if test="qo.statusList != null and qo.statusList.size() > 0">
|
||||
and s.status in
|
||||
<foreach collection="qo.statusList" item="id" index="index"
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
|
||||
@@ -623,7 +620,7 @@
|
||||
<when test="qo.orderName != '' and qo.orderName != null ">
|
||||
<choose>
|
||||
<when test="qo.orderSort != '' and qo.orderSort != null ">
|
||||
order by s.${qo.orderName} ${qo.orderSort}
|
||||
order by s.${qo.orderName} ${qo.orderSort}
|
||||
</when>
|
||||
<otherwise>
|
||||
order by s.id desc
|
||||
@@ -643,7 +640,6 @@
|
||||
</select>
|
||||
<select id="allStoryPageList" resultType="com.sa.zentao.dao.ZtStoryDTO">
|
||||
|
||||
|
||||
select s.id,
|
||||
s.vision,
|
||||
s.parent,
|
||||
@@ -1008,8 +1004,15 @@
|
||||
</if>
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'WGB' ">
|
||||
and s.status !='closed'
|
||||
|
||||
</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 == 'WCS' ">
|
||||
and s.test_user = #{qo.userName}
|
||||
</if>
|
||||
|
||||
<if test="qo.searchVal != null and qo.searchVal == 'ZGW' ">
|
||||
and s.assignedTo = #{qo.userName}
|
||||
</if>
|
||||
@@ -1090,8 +1093,15 @@
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
|
||||
</if>
|
||||
<if test="qo.statusList != null and qo.statusList.size() > 0">
|
||||
and s.status in
|
||||
<foreach collection="qo.statusList" item="id" index="index"
|
||||
open="(" close=")" separator=",">
|
||||
#{id}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
group by s.id
|
||||
|
||||
<choose>
|
||||
@@ -1351,14 +1361,17 @@
|
||||
|
||||
<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
|
||||
WHERE plan_end_date >=#{startTime} and plan_end_date <= #{endTime}
|
||||
and status not in ('closed')
|
||||
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 releasedDate <=#{endTime}
|
||||
and status not in ('closed')
|
||||
AND product in
|
||||
<foreach collection="pIds" item="id" index="index"
|
||||
open="(" close=")" separator=",">
|
||||
|
||||
Reference in New Issue
Block a user