|
@@ -40,16 +40,16 @@
|
|
|
and b.is_deleted = 'N'
|
|
|
and d.is_deleted = 'N'
|
|
|
<if test="libType!=null and libType!=''">
|
|
|
- AND b.lib_type =#{libType}
|
|
|
+ AND UPPER(b.lib_type) LIKE CONCAT('%', UPPER(trim(#{libType})), '%')
|
|
|
</if>
|
|
|
<if test="libType!=null and libType!=''">
|
|
|
- AND b.lib_name LIKE CONCAT('%',#{libName}, '%')
|
|
|
+ AND UPPER(b.lib_name) LIKE CONCAT('%', UPPER(trim(#{libName})), '%')
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
|
AND b.status = #{status}
|
|
|
</if>
|
|
|
<if test="synonymName!=null and synonymName!=''">
|
|
|
- AND a.name LIKE CONCAT('%',#{synonymName}, '%')
|
|
|
+ AND UPPER(a.name) LIKE CONCAT('%', UPPER(trim(#{synonymName})), '%')
|
|
|
</if>
|
|
|
GROUP BY a.concept_id
|
|
|
</select>
|