fix(用例管理): 用例详情依赖关系/需求,只支持名称搜索

--bug=1039880 --user=王旭 【用例管理】用例详情-需求/依赖关系-都是只支持名称搜索,不应该支持ID搜索 https://www.tapd.cn/55049933/s/1505433
This commit is contained in:
WangXu10 2024-04-22 17:53:56 +08:00 committed by Craftsman
parent e0b5265e73
commit a3693c1dd9
2 changed files with 2 additions and 9 deletions

View File

@ -13,10 +13,7 @@
(functional_case_demand.with_parent = 'false')
)
<if test="keyword != null and keyword != ''">
AND (
functional_case_demand.demand_id = #{keyword} OR
(functional_case_demand.demand_name LIKE CONCAT('%', #{keyword}, '%'))
)
AND functional_case_demand.demand_name LIKE CONCAT('%', #{keyword}, '%')
</if>
</select>

View File

@ -52,11 +52,7 @@
</choose>
</if>
<if test="request.keyword != null and request.keyword != ''">
and (
fc.name like concat('%', #{request.keyword},'%')
or fc.num like concat('%', #{request.keyword},'%')
or fc.tags like concat('%', #{request.keyword},'%')
)
and fc.name like concat('%', #{request.keyword},'%')
</if>
order by
<if test="sort != null and sort != ''">