refactor(工作台): 更改我的待办测试计划列表筛选条件

--user=郭雨琦
This commit is contained in:
guoyuqi 2022-10-31 18:25:37 +08:00 committed by xiaomeinvG
parent fcba9aedab
commit e277bba824
1 changed files with 5 additions and 13 deletions

View File

@ -184,12 +184,6 @@
<if test="(request.filters == null or request.filters.size() == 0) and request.byFilter != true "> <if test="(request.filters == null or request.filters.size() == 0) and request.byFilter != true ">
and test_plan.status != 'Archived' and test_plan.status != 'Archived'
</if> </if>
<if test="request.byFilter == true">
and test_plan.status in
<foreach collection="request.filterStatus" item="value" separator="," open="(" close=")">
#{value}
</foreach>
</if>
</where> </where>
<if test="request.orders != null and request.orders.size() > 0"> <if test="request.orders != null and request.orders.size() > 0">
@ -219,7 +213,6 @@
test_plan_test_case.status in test_plan_test_case.status in
<include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/> <include refid="io.metersphere.base.mapper.ext.ExtBaseMapper.filterInWrapper"/>
)) ))
AND test_plan.status != 'Archived'
</when> </when>
<otherwise> <otherwise>
and test_plan.status in and test_plan.status in
@ -326,8 +319,7 @@
SELECT p.name SELECT p.name
FROM test_plan tp FROM test_plan tp
INNER JOIN project p ON p.id = tp.project_id INNER JOIN project p ON p.id = tp.project_id
WHERE tp.id = #{0} WHERE tp.id = #{0} limit 1;
limit 1;
</select> </select>
<select id="findIdByPerformanceReportId" resultType="java.lang.String"> <select id="findIdByPerformanceReportId" resultType="java.lang.String">
SELECT report.id SELECT report.id