|
@@ -814,12 +814,12 @@
|
|
|
and
|
|
|
<choose>
|
|
|
<when test="logicalOperator != null and logicalOperator eq 0">
|
|
|
- <foreach collection="names" item="id" separator="and">
|
|
|
+ <foreach collection="names" item="id" open="(" separator="and" close=")">
|
|
|
UPPER(kc.lib_name) LIKE CONCAT('%', UPPER(trim(#{id})), '%')
|
|
|
</foreach>
|
|
|
</when>
|
|
|
<when test="logicalOperator != null and logicalOperator eq 1">
|
|
|
- <foreach collection="names" item="id" separator="or">
|
|
|
+ <foreach collection="names" item="id" open="(" separator="or" close=")">
|
|
|
UPPER(kc.lib_name) LIKE CONCAT('%', UPPER(trim(#{id})), '%')
|
|
|
</foreach>
|
|
|
</when>
|