|
@@ -546,11 +546,11 @@
|
|
) t
|
|
) t
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
AND l1.is_deleted = 'N'
|
|
AND l1.is_deleted = 'N'
|
|
- WHERE
|
|
|
|
- 1=1
|
|
|
|
|
|
+ <where>
|
|
<if test="inputStr!=null and inputStr!=''">
|
|
<if test="inputStr!=null and inputStr!=''">
|
|
AND LOWER(l1.icd10_code) = LOWER(#{inputStr})
|
|
AND LOWER(l1.icd10_code) = LOWER(#{inputStr})
|
|
</if>
|
|
</if>
|
|
|
|
+ </where>
|
|
UNION
|
|
UNION
|
|
SELECT
|
|
SELECT
|
|
t.moduleNo,
|
|
t.moduleNo,
|
|
@@ -587,11 +587,11 @@
|
|
) t
|
|
) t
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
AND l1.is_deleted = 'N'
|
|
AND l1.is_deleted = 'N'
|
|
- WHERE
|
|
|
|
- 1=1
|
|
|
|
|
|
+ <where>
|
|
<if test="inputStr!=null and inputStr!=''">
|
|
<if test="inputStr!=null and inputStr!=''">
|
|
AND LOWER(l1.icd10_code) LIKE LOWER( concat(#{inputStr},'%'))
|
|
AND LOWER(l1.icd10_code) LIKE LOWER( concat(#{inputStr},'%'))
|
|
</if>
|
|
</if>
|
|
|
|
+ </where>
|
|
UNION
|
|
UNION
|
|
SELECT
|
|
SELECT
|
|
t.moduleNo,
|
|
t.moduleNo,
|
|
@@ -628,11 +628,11 @@
|
|
) t
|
|
) t
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
LEFT JOIN kl_disease l1 ON t.id = l1.concept_id
|
|
AND l1.is_deleted = 'N'
|
|
AND l1.is_deleted = 'N'
|
|
- WHERE
|
|
|
|
- 1=1
|
|
|
|
|
|
+ <where>
|
|
<if test="inputStr!=null and inputStr!=''">
|
|
<if test="inputStr!=null and inputStr!=''">
|
|
AND LOWER(l1.icd10_code) LIKE LOWER( concat('%',#{inputStr},'%'))
|
|
AND LOWER(l1.icd10_code) LIKE LOWER( concat('%',#{inputStr},'%'))
|
|
</if>
|
|
</if>
|
|
|
|
+ </where>
|
|
</if>)o1
|
|
</if>)o1
|
|
order by o1.type asc,o1.moduleNo ASC,o1.isConcept DESC
|
|
order by o1.type asc,o1.moduleNo ASC,o1.isConcept DESC
|
|
Limit 1000
|
|
Limit 1000
|