<?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.zqdyrmyy.mapper.ZqDyRmYyOutpatientLisReportViewMapper">


    <select id="findOutpatientLisReportByReportDate"
            resultType="com.docus.server.zqdyrmyy.entity.ZqDyRmYyOutpatientLisReportView">
        SELECT PATIENT_NAME AS name,INP_NUM AS inpatientNo, VISIT_NO AS admissTimes,OUT_TIME AS disDate,REPORT_DATE_TIME AS reportDate,CHECK_TYPE AS type
        FROM MDIP.V_JSWZH_OUTPATIENT_LISREPORT
        WHERE REPORT_DATE_TIME >= to_date(#{startDateTime}, 'yyyy-MM-dd hh24:mi:ss')
    </select>
</mapper>
