You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
715 B
XML
18 lines
715 B
XML
<?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.mzsy.mapper.MzsyPatientInfoViewMapper">
|
|
|
|
<select id="pageByViwe" resultType="com.docus.server.mzsy.entity.MzsyPatientInfoView">
|
|
SELECT v.*
|
|
FROM
|
|
(select ROW_NUMBER()over(order by jzh) as ROWNUMBER,* from dbo.V_JSWZH_BASE_ZL
|
|
where CONVERT(DATETIME, cyrq) > #{cyrqStart}
|
|
and CONVERT(DATETIME, updated_time) > #{startTime}
|
|
) AS v
|
|
WHERE v.ROWNUMBER BETWEEN ${(pageNum-1)*pageSize+1}
|
|
AND ${pageNum*pageSize}
|
|
</select>
|
|
</mapper>
|