fix(测试计划): 测试计划关联用例模块树数量问题

This commit is contained in:
WangXu10 2024-05-20 14:32:32 +08:00 committed by Craftsman
parent 57e9e3f3a1
commit 793433c230
1 changed files with 5 additions and 0 deletions

View File

@ -665,6 +665,11 @@
select case_id from case_review_functional_case where review_id = #{request.reviewId} select case_id from case_review_functional_case where review_id = #{request.reviewId}
) )
</if> </if>
<if test="request.testPlanId != null and request.testPlanId != ''">
AND functional_case.id not in (
select test_plan_functional_case.functional_case_id from test_plan_functional_case where test_plan_functional_case.test_plan_id = #{request.testPlanId}
)
</if>
<if test="request.excludeIds != null and request.excludeIds.size() > 0"> <if test="request.excludeIds != null and request.excludeIds.size() > 0">
AND functional_case.id not in AND functional_case.id not in
<foreach collection="request.excludeIds" item="excludeId" separator="," open="(" close=")"> <foreach collection="request.excludeIds" item="excludeId" separator="," open="(" close=")">