<?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.GdSzyZhShouMaReportDataViewMapper">

    <select id="getByJzhs" resultType="com.docus.server.gdszyzh.entity.GdSzyZhReportDataView">
        SELECT
            EMR_FILE_NAME as reportNo,
            FILENAME as reportTitle,
            MR_SUB_CLASS as reportClass,
            FILETIME as  reportTime,
            FILEPATH as reportUrl,
            PATIENT_ID AS jzh
        FROM
            v_anes_pdf
            WHERE PATIENT_ID in
        <foreach collection="jzhs" open="(" close=")" separator="," item="jzh">
            #{jzh}
        </foreach>
    </select>
</mapper>
