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.
46 lines
1.5 KiB
XML
46 lines
1.5 KiB
XML
1 year ago
|
<?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.shibofu.spring.db1.dao.ArchiveMasterDao">
|
||
|
|
||
|
<select id="PollingPacs" resultType="com.shibofu.spring.vo.ArchiveMasterVo">
|
||
|
SELECT
|
||
|
id,
|
||
|
name,
|
||
|
visit_id AS visitId,
|
||
|
inp_no AS inpNo,
|
||
|
admission_date_time AS admissionDateTime,
|
||
|
discharge_date_time AS dischargeDateTime
|
||
|
FROM
|
||
|
archive_master
|
||
|
WHERE
|
||
|
discharge_date_time BETWEEN DATEADD( hh, - 24,GETDATE() ) AND GETDATE()
|
||
|
</select>
|
||
|
<select id="PacsEveryWeekPolling" resultType="com.shibofu.spring.vo.ArchiveMasterVo">
|
||
|
SELECT
|
||
|
id,
|
||
|
name,
|
||
|
visit_id AS visitId,
|
||
|
inp_no AS inpNo,
|
||
|
admission_date_time AS admissionDateTime,
|
||
|
discharge_date_time AS dischargeDateTime
|
||
|
FROM
|
||
|
archive_master
|
||
|
WHERE
|
||
|
discharge_date_time BETWEEN DATEADD( hh, - 168,GETDATE() ) AND GETDATE()
|
||
|
</select>
|
||
|
<select id="makeUpPacsByMasterId" resultType="com.shibofu.spring.vo.ArchiveMasterVo">
|
||
|
SELECT
|
||
|
id,
|
||
|
name,
|
||
|
visit_id AS visitId,
|
||
|
inp_no AS inpNo,
|
||
|
admission_date_time AS admissionDateTime,
|
||
|
discharge_date_time AS dischargeDateTime
|
||
|
FROM
|
||
|
archive_master
|
||
|
WHERE
|
||
|
id=#{masterId}
|
||
|
</select>
|
||
|
</mapper>
|