From 198ee38684b844473cd38dbb27ac984a2e932480 Mon Sep 17 00:00:00 2001 From: liusheng <337615773@qq.com> Date: 星期三, 16 四月 2025 17:53:20 +0800 Subject: [PATCH] 代码提交 --- smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml index 87a12f9..136a36e 100644 --- a/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml +++ b/smartor/src/main/resources/mapper/smartor/PatMedOuthospMapper.xml @@ -114,7 +114,13 @@ <if test="deptname != null and deptname != ''">and pmo.deptname like concat('%', #{deptname}, '%')</if> <if test="drname != null and drname != ''">and pmo.drname like concat('%', #{drname}, '%')</if> <if test="patname != null and patname != ''">and pmo.patname like concat('%', #{patname}, '%')</if> - <if test="admitdate != null ">and pmo.admitdate = #{admitdate}</if> + + <if test="beginTime != null ">and date_format(pmo.admitdate,'%Y%m%d%H%i%s') >= + date_format(#{beginTime},'%Y%m%d%H%i%s') + </if> + <if test="endTime != null ">and date_format(pmo.admitdate,'%Y%m%d%H%i%s') <= + date_format(#{endTime},'%Y%m%d%H%i%s') + </if> <if test="patid != null ">and pmo.patid = #{patid}</if> <if test="patno != null ">and pmo.patno = #{patno}</if> <if test="orgid != null and orgid != ''">and pmo.orgid = #{orgid}</if> -- Gitblit v1.9.3