diff --git a/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml b/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml index f93a7e6c..06d91ec2 100644 --- a/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml +++ b/openhis-server-new/openhis-domain/src/main/resources/mapper/administration/ScheduleSlotMapper.xml @@ -379,9 +379,12 @@ AND org.delete_flag = '0' p.delete_flag = '0' + AND p.schedule_date = CAST(#{query.date} AS DATE) + + AND p.schedule_date >= CURRENT_DATE AND org.name = #{query.department}