diff --git a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml
index 6efe8407..f0c210da 100644
--- a/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml
+++ b/xm-core/src/main/resources/mybatis/mapper/xm/core/dao/XmTestPlanCaseMapper.xml
@@ -6,21 +6,47 @@
- and (res.case_id, res.plan_id) in
-
- ( #{item.caseId}, #{item.planId})
-
-
- and c.case_name like concat('%',#{key},'%')
-
-
- and exists( select 1 from xm_func f where f.pid_paths like concat(#{funcPidPathsLike},'%') and c.func_id=f.id)
+
+ and res.plan_id=#{planId}
+
+
+ and p.casedb_id=#{casedbId}
+
+
+ and p.project_id=#{projectId}
- and c.product_id=#{productId}
+ and p.product_id=#{productId}
-
+
+
+ and res.plan_id=#{planId}
+
+
+ and p.casedb_id=#{casedbId}
+
+
+ and p.project_id=#{projectId}
+
+
+ and p.product_id=#{productId}
+
+
+ and p.pbranch_id=#{pbranchId}
+
+
+ and res.exec_date between #{startExecDate} and #{endExecDate}
+
+
+ and exists ( select 1 from xm_test_case c inner join xm_menu m on c.menu_id=m.menu_id
+ where m.iteration_id=#{linkIterationId} and c.id=res.case_id
+
+ and m.product_id=#{productId}
+
+ )
+
+