陈昶聿
5 天以前 efaa2a7a5b7d9d1a36f4d6a7e275d2b76f6cd9d3
smartor/src/main/resources/mapper/smartor/Icd10Mapper.xml
@@ -57,6 +57,14 @@
            <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">
@@ -176,4 +184,14 @@
            #{icdid}
        </foreach>
    </delete>
    <!-- 批量查询已存在的 icdcode,用于分页拉取后去重 -->
    <select id="selectExistingIcdcodes" resultType="java.lang.String">
        select icdname from icd10
        where del_flag = 0
          and icdname in
        <foreach item="icdname" collection="icdnames" open="(" separator="," close=")">
            #{icdname}
        </foreach>
    </select>
</mapper>