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