|
@@ -1112,18 +1112,16 @@
|
|
|
<if test="diseaseIndexPageVO.inputStr != null and diseaseIndexPageVO.inputStr != '' and diseaseIndexPageVO.type != null">
|
|
|
<choose>
|
|
|
<when test="diseaseIndexPageVO.type == 1">
|
|
|
- AND c.icd10_code IS NOT NULL
|
|
|
AND c.icd10_code != ''
|
|
|
- AND ( a.lib_name LIKE #{diseaseIndexPageVO.inputStr}
|
|
|
- OR b.spell LIKE #{diseaseIndexPageVO.inputStr}
|
|
|
- OR c.icd10_code LIKE #{diseaseIndexPageVO.inputStr} )
|
|
|
+ AND ( a.lib_name = #{diseaseIndexPageVO.inputStr}
|
|
|
+ OR b.spell = #{diseaseIndexPageVO.inputStr}
|
|
|
+ OR c.icd10_code = #{diseaseIndexPageVO.inputStr} )
|
|
|
</when>
|
|
|
<when test="diseaseIndexPageVO.type == 2">
|
|
|
- AND c.guocode IS NOT NULL
|
|
|
AND c.guocode != ''
|
|
|
- AND ( c.guoname LIKE #{diseaseIndexPageVO.inputStr}
|
|
|
- OR c.guospell LIKE #{diseaseIndexPageVO.inputStr}
|
|
|
- OR c.guocode LIKE #{diseaseIndexPageVO.inputStr} )
|
|
|
+ AND ( c.guoname = #{diseaseIndexPageVO.inputStr}
|
|
|
+ OR c.guospell = #{diseaseIndexPageVO.inputStr}
|
|
|
+ OR c.guocode = #{diseaseIndexPageVO.inputStr} )
|
|
|
</when>
|
|
|
<otherwise></otherwise>
|
|
|
</choose>
|
|
@@ -1154,14 +1152,12 @@
|
|
|
<if test="diseaseIndexPageVO.inputStr != null and diseaseIndexPageVO.inputStr != '' and diseaseIndexPageVO.type != null">
|
|
|
<choose>
|
|
|
<when test="diseaseIndexPageVO.type == 1">
|
|
|
- AND c.icd10_code IS NOT NULL
|
|
|
AND c.icd10_code != ''
|
|
|
AND ( a.lib_name LIKE CONCAT( #{diseaseIndexPageVO.inputStr}, '%' )
|
|
|
OR b.spell LIKE CONCAT( #{diseaseIndexPageVO.inputStr}, '%' )
|
|
|
OR c.icd10_code LIKE CONCAT( #{diseaseIndexPageVO.inputStr}, '%' ) )
|
|
|
</when>
|
|
|
<when test="diseaseIndexPageVO.type == 2">
|
|
|
- AND c.guocode IS NOT NULL
|
|
|
AND c.guocode != ''
|
|
|
AND ( c.guoname LIKE CONCAT( #{diseaseIndexPageVO.inputStr}, '%' )
|
|
|
OR c.guospell LIKE CONCAT( #{diseaseIndexPageVO.inputStr}, '%' )
|
|
@@ -1196,7 +1192,6 @@
|
|
|
<if test="diseaseIndexPageVO.inputStr != null and diseaseIndexPageVO.inputStr != '' and diseaseIndexPageVO.type != null">
|
|
|
<choose>
|
|
|
<when test="diseaseIndexPageVO.type == 1">
|
|
|
- AND c.icd10_code IS NOT NULL
|
|
|
AND c.icd10_code != ''
|
|
|
AND ( a.lib_name LIKE CONCAT( '%', #{diseaseIndexPageVO.inputStr}, '%' )
|
|
|
OR b.spell LIKE CONCAT( '%', #{diseaseIndexPageVO.inputStr}, '%' )
|
|
@@ -1208,7 +1203,6 @@
|
|
|
)
|
|
|
</when>
|
|
|
<when test="diseaseIndexPageVO.type == 2">
|
|
|
- AND c.guocode IS NOT NULL
|
|
|
AND c.guocode != ''
|
|
|
AND ( c.guoname LIKE CONCAT( '%', #{diseaseIndexPageVO.inputStr}, '%' )
|
|
|
OR c.guospell LIKE CONCAT( '%', #{diseaseIndexPageVO.inputStr}, '%' )
|