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.
|
|
|
|
<?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}
|
|
|
|
|
) AS v
|
|
|
|
|
WHERE v.ROWNUMBER BETWEEN ${(pageNum-1)*pageSize+1}
|
|
|
|
|
AND ${pageNum*pageSize}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="listZkInfo" resultType="com.docus.server.archive.entity.TBasicZkInfo">
|
|
|
|
|
select jzh,
|
|
|
|
|
out_dept_code as outDeptCode,
|
|
|
|
|
out_dept_name as outDeptName,
|
|
|
|
|
out_date as outDate,
|
|
|
|
|
in_dept_code as inDeptCode,
|
|
|
|
|
in_dept_name as inDeptName
|
|
|
|
|
from dbo.V_JSWZH_BASE_ZK
|
|
|
|
|
where jzh = #{jzh}
|
|
|
|
|
</select>
|
|
|
|
|
<select id="getByJzh" resultType="com.docus.server.mzsy.entity.MzsyPatientInfoView">
|
|
|
|
|
select ROW_NUMBER()over(order by jzh) as ROWNUMBER,* from dbo.V_JSWZH_BASE_ZL
|
|
|
|
|
where CONVERT(DATETIME, cyrq) > #{cyrqStart}
|
|
|
|
|
and jzh in <foreach collection="jzhs" item="jzh" open="(" close=")" separator=",">
|
|
|
|
|
#{jzh}
|
|
|
|
|
</foreach>
|
|
|
|
|
</select>
|
|
|
|
|
</mapper>
|