From 56e6e579618a13221e56cd49e72c9ac0904da95c Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期四, 06 十一月 2025 14:01:56 +0800
Subject: [PATCH] 代码提交
---
smartor/src/main/resources/mapper/smartor/ExternallInfoMapper.xml | 33 +++++++++++++++++++--------------
1 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/smartor/src/main/resources/mapper/smartor/ExternallInfoMapper.xml b/smartor/src/main/resources/mapper/smartor/ExternallInfoMapper.xml
index 798b39e..19a7e2c 100644
--- a/smartor/src/main/resources/mapper/smartor/ExternallInfoMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/ExternallInfoMapper.xml
@@ -151,6 +151,7 @@
DWMC,
RYRQ,
SFZH,
+ YLDH,
JDR
from HIT.HF_RYJDXX
</sql>
@@ -303,8 +304,9 @@
<select id="getExternalOutHospInfo" resultMap="ExternalOutHospInfResult">
<include refid="selectOutHospitalRecordVo"/>
<where>
- <if test="startTime != null and endTime != null ">and jzrq between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND
- TO_DATE(#{endTime},'YYYY-MM-DD')
+ <if test="startTime != null and endTime != null">
+ and jzrq > TO_DATE(#{startTime}, 'YYYY-MM-DD')
+ and jzrq <= TO_DATE(#{endTime}, 'YYYY-MM-DD')
</if>
</where>
</select>
@@ -312,8 +314,9 @@
<select id="getExternalOutHospPatientInfo" resultMap="ExternalPatientInfoResult">
<include refid="selectOutHospitalPatientRecordVo"/>
<where>
- <if test="startTime != null and endTime != null ">and jdsj between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND
- TO_DATE(#{endTime},'YYYY-MM-DD')
+ <if test="startTime != null and endTime != null ">
+ and jdsj > TO_DATE(#{startTime}, 'YYYY-MM-DD')
+ and jdsj <= TO_DATE(#{endTime}, 'YYYY-MM-DD')
</if>
<if test="brid != null ">and BRID = #{brid}</if>
</where>
@@ -322,8 +325,9 @@
<select id="getExternalLeaveHospPatientInfo" resultMap="ExternalLeaveHospPatientInfoResult">
<include refid="selectLeaveHospitalRecordVo"/>
<where>
- <if test="startTime != null and endTime != null ">and cysq between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND
- TO_DATE(#{endTime},'YYYY-MM-DD')
+ <if test="startTime != null and endTime != null ">
+ and cysq > TO_DATE(#{startTime}, 'YYYY-MM-DD')
+ and cysq <= TO_DATE(#{endTime}, 'YYYY-MM-DD')
</if>
</where>
</select>
@@ -331,8 +335,9 @@
<select id="getExternalInHospPatientInfo" resultMap="ExternalInHospPatientInfoResult">
<include refid="selectInHospitalRecordVo"/>
<where>
- <if test="startTime != null and endTime != null ">and ryrq between TO_DATE(#{startTime}, 'YYYY-MM-DD') AND
- TO_DATE(#{endTime},'YYYY-MM-DD')
+ <if test="startTime != null and endTime != null ">
+ and ryrq > TO_DATE(#{startTime}, 'YYYY-MM-DD')
+ and ryrq <= TO_DATE(#{endTime}, 'YYYY-MM-DD')
</if>
<if test="brid != null ">and BRID = #{brid}</if>
</where>
@@ -341,9 +346,9 @@
<select id="getExternalUserInfo" resultMap="ExternalUserInfoResult">
<include refid="selectUserVo"/>
<where>
- <if test="startTime != null and endTime != null ">and create_time between TO_DATE(#{startTime},
- 'YYYY-MM-DD') AND
- TO_DATE(#{endTime},'YYYY-MM-DD')
+ <if test="startTime != null and endTime != null ">
+ and create_time > TO_DATE(#{startTime}, 'YYYY-MM-DD')
+ and create_time <= TO_DATE(#{endTime}, 'YYYY-MM-DD')
</if>
</where>
</select>
@@ -351,9 +356,9 @@
<select id="getExternalDeptInfo" resultMap="ExternalDeptInfoResult">
<include refid="selectDeptVo"/>
<where>
- <if test="startTime != null and endTime != null ">and create_time between TO_DATE(#{startTime},
- 'YYYY-MM-DD') AND
- TO_DATE(#{endTime},'YYYY-MM-DD')
+ <if test="startTime != null and endTime != null ">
+ and create_time > TO_DATE(#{startTime}, 'YYYY-MM-DD')
+ and create_time <= TO_DATE(#{endTime}, 'YYYY-MM-DD')
</if>
</where>
</select>
--
Gitblit v1.9.3