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

View File

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