陈昶聿
4 小时以前 640d8a0015e132c75bb6e8dda4d44b7202c4a53a
smartor/src/main/resources/mapper/smartor/Icd10Mapper.xml
@@ -67,6 +67,30 @@
            </if>
    </select>
    <select id="exactQueryIcd10List" parameterType="com.smartor.domain.Icd10" resultMap="Icd10Result">
        <include refid="selectIcd10Vo"/>
        where 1=1
        and del_flag = 0
        <if test="icdcode != null  and icdcode != ''">and icdcode = #{icdcode}</if>
        <if test="lastflag != null  and lastflag != ''">and lastflag = #{lastflag}</if>
        <if test="chimedflag != null  and chimedflag != ''">and chimedflag = #{chimedflag}</if>
        <if test="icdname != null  and icdname != ''">and icdname = #{icdname} </if>
        <if test="icdpym != null  and icdpym != ''">and icdpym = #{icdpym}</if>
        <if test="icdwbm != null  and icdwbm != ''">and icdwbm = #{icdwbm}</if>
        <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
        <if test="pid != null ">and pid = #{pid}</if>
        <if test="guid != null  and guid != ''">and guid = #{guid}</if>
        <if test="hisIcdid != null  and hisIcdid != ''">and his_icdid = #{hisIcdid}</if>
        <if test="icdcodes != null and icdcodes.size() > 0">
            AND icdcode IN
            <foreach collection="icdcodes" item="icdcodeItem" open="("
                     separator=","
                     close=")">
                #{icdcodeItem}
            </foreach>
        </if>
    </select>
    <select id="selectIcd10ByIcdid" parameterType="Long" resultMap="Icd10Result">
        <include refid="selectIcd10Vo"/>
        where icdid = #{icdid}