|
@@ -184,7 +184,7 @@
|
|
|
and a.name_ like #{searchParams.name}
|
|
|
</if>
|
|
|
<if test="searchParams.nameList != null">
|
|
|
- <foreach item="name" collection="searchParams.nameList" open="and" separator="or">
|
|
|
+ <foreach item="name" collection="searchParams.nameList" open="and (" separator="or" close=")">
|
|
|
a.name_ like #{name}
|
|
|
</foreach>
|
|
|
</if>
|
|
@@ -275,7 +275,7 @@
|
|
|
where a.del_flag = 0
|
|
|
and b.code_ like #{searchParams.code}
|
|
|
<if test="searchParams.nameList != null">
|
|
|
- <foreach item="name" collection="searchParams.nameList" open="and" separator="or">
|
|
|
+ <foreach item="name" collection="searchParams.nameList" open="and (" separator="or" close=")">
|
|
|
a.name_ like #{name}
|
|
|
</foreach>
|
|
|
</if>
|