陈裕财 3 years ago
parent
commit
01c3ff2f45
  1. 2
      xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseMapper.xml

2
xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestCaseMapper.xml

@ -22,7 +22,7 @@
#{item} #{item}
</foreach> </foreach>
</if> </if>
<if test="projectId !=null and projectId !=''"> and exists ( select 1 from xm_test_case_exec c where c.case_id=res.id and c.project_id=#{projectId} )</if>
<if test="projectId !=null and projectId !=''"> and exists ( select 1 from xm_test_plan_case c where c.case_id=res.id and c.project_id=#{projectId} )</if>
<if test="(productId != null and productId !='') or (iterationId!=null and iterationId!='')"> and exists( select 1 from xm_menu m where m.menu_id =res.menu_id <if test="(productId != null and productId !='') or (iterationId!=null and iterationId!='')"> and exists( select 1 from xm_menu m where m.menu_id =res.menu_id
<if test="productId != null and productId !=''" >and m.product_id=#{productId} </if> <if test="productId != null and productId !=''" >and m.product_id=#{productId} </if>
<if test="iterationId != null and iterationId !=''" >and m.iteration_id=#{iterationId} </if> <if test="iterationId != null and iterationId !=''" >and m.iteration_id=#{iterationId} </if>

Loading…
Cancel
Save