<?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.zqdyry.mapper.ZqDyRyPatientInfoViewMapper">


    <select id="pageByModifyTime" resultType="com.docus.server.zqdyry.entity.ZqDyRyPatientInfoView">
        SELECT *
        FROM (
                 SELECT t.*,
                        ROWNUM rn
                 FROM MDIP.V_JSWZH_BASE_ZL t
                 WHERE TO_DATE(LAST_MODIFIC_TIME, 'YYYY-MM-DD HH24:MI:SS') BETWEEN TO_DATE(#{timeBegin}, 'YYYY-MM-DD HH24:MI:SS') AND TO_DATE(#{timeEnd}, 'YYYY-MM-DD HH24:MI:SS')
             ) WHERE rn BETWEEN ${startRow} AND ${endRow}
    </select>
</mapper>
