<?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.gdszyzh.mapper.GdSzyZhIcuReportDataViewMapper">

    <select id="getByInpatientNo" resultType="com.docus.server.gdszyzh.entity.GdSzyZhReportDataView">
        select
            FILEID as reportNo,
            FILENAME as reportTitle,
            FILEMODOULENAME as reportClass,
            FILETIME as  reportTime,
            FILEPATH as reportUrl,
            JZH,
            ZYH as inpatientNo,
            ZYCS as admissTimes
        from V_DOCUMENT_PDF
        where ZYH = #{inpatientNo}

    </select>
</mapper>
