|
@@ -32,6 +32,9 @@
|
|
<if test="libType!=null">
|
|
<if test="libType!=null">
|
|
and b.lib_type=#{libType}
|
|
and b.lib_type=#{libType}
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="lisPacsOnly != null and lisPacsOnly == 1">
|
|
|
|
+ AND b.lib_type in (16,46)
|
|
|
|
+ </if>
|
|
group by a.concept_id
|
|
group by a.concept_id
|
|
ORDER BY a.is_deleted ASC, a.gmt_modified DESC
|
|
ORDER BY a.is_deleted ASC, a.gmt_modified DESC
|
|
</select>
|
|
</select>
|
|
@@ -47,7 +50,7 @@
|
|
|
|
|
|
<select id="index" resultType="com.diagbot.dto.ConceptIndexDTO">
|
|
<select id="index" resultType="com.diagbot.dto.ConceptIndexDTO">
|
|
SELECT
|
|
SELECT
|
|
- DISTINCT
|
|
|
|
|
|
+ DISTINCT
|
|
a.id AS conceptId,
|
|
a.id AS conceptId,
|
|
a.lib_name AS name,
|
|
a.lib_name AS name,
|
|
a.lib_type AS typeId
|
|
a.lib_type AS typeId
|
|
@@ -57,7 +60,14 @@
|
|
<if test="name != null and name != ''">
|
|
<if test="name != null and name != ''">
|
|
AND UPPER(a.lib_name) like concat('%',UPPER(TRIM(#{name})) ,'%' )
|
|
AND UPPER(a.lib_name) like concat('%',UPPER(TRIM(#{name})) ,'%' )
|
|
</if>
|
|
</if>
|
|
- AND a.lib_type not in(12,13,14)
|
|
|
|
|
|
+ <choose>
|
|
|
|
+ <when test="lisPacsOnly != null and lisPacsOnly == 1">
|
|
|
|
+ AND a.lib_type in (16,46)
|
|
|
|
+ </when>
|
|
|
|
+ <otherwise>
|
|
|
|
+ AND a.lib_type not in(12,13,14)
|
|
|
|
+ </otherwise>
|
|
|
|
+ </choose>
|
|
ORDER BY a.gmt_modified DESC
|
|
ORDER BY a.gmt_modified DESC
|
|
</select>
|
|
</select>
|
|
|
|
|