<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.docus.server.message.mapper.SdRyIcuMapper">

    <select id="getById" resultType="java.util.Map">
        SELECT *
        FROM `docus_medicalrecord`.t_basic tb
        WHERE tb.patient_id=#{id}
    </select>
    <select id="countByInpNoAndAdmissTimes" resultType="java.lang.Integer">
        select count(1)
        from smtz_10
        where 住院号 = #{inpatientNo}
          and 住院次数 = #{admissTimes}
    </select>
</mapper>
