fix(测试用例): 高级搜索按空格分隔关键字,判断条件有误
--bug=1046381 --user=陈建星 【用例列表】-筛选-文本类型字段查询,多个关键字之间的逻辑错误,使用的是or,应该使用and https://www.tapd.cn/55049933/s/1578505
This commit is contained in:
parent
15536c83e4
commit
d1faf09e47
|
@ -209,12 +209,12 @@
|
|||
<trim prefix="(" suffix=")">
|
||||
<choose>
|
||||
<when test="${condition}.operator == 'CONTAINS'">
|
||||
<foreach collection="${condition}.value.split(' ')" item="item" separator="or">
|
||||
<foreach collection="${condition}.value.split(' ')" item="item" separator="and">
|
||||
${column} like CONCAT('%', #{item},'%')
|
||||
</foreach>
|
||||
</when>
|
||||
<when test="${condition}.operator == 'NOT_CONTAINS'">
|
||||
<foreach collection="${condition}.value.split(' ')" item="item" separator="and">
|
||||
<foreach collection="${condition}.value.split(' ')" item="item" separator="or">
|
||||
${column} not like CONCAT('%', #{item},'%')
|
||||
</foreach>
|
||||
</when>
|
||||
|
|
Loading…
Reference in New Issue