|
@@ -43,7 +43,7 @@
|
|
|
<if test="libType!=null and libType!=''">
|
|
|
AND UPPER(b.lib_type) LIKE CONCAT('%', UPPER(trim(#{libType})), '%')
|
|
|
</if>
|
|
|
- <if test="libType!=null and libType!=''">
|
|
|
+ <if test="libName!=null and libName!=''">
|
|
|
AND UPPER(b.lib_name) LIKE CONCAT('%', UPPER(trim(#{libName})), '%')
|
|
|
</if>
|
|
|
<if test="status != null">
|
|
@@ -53,7 +53,7 @@
|
|
|
AND UPPER(a.name) LIKE CONCAT('%', UPPER(trim(#{synonymName})), '%')
|
|
|
</if>
|
|
|
GROUP BY a.concept_id
|
|
|
- ORDER BY b.gmt_modified DESC
|
|
|
+ ORDER BY b.gmt_modified DESC , b.status DESC
|
|
|
</select>
|
|
|
<select id="getConceptAll" resultType="com.diagbot.dto.KlConceptAllDTO">
|
|
|
SELECT
|