From 57706319aed9fb1430d0677c8ff9ae5433b5a2c7 Mon Sep 17 00:00:00 2001 From: cjw Date: Wed, 21 Aug 2024 14:49:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/resources/mapper/scale/ReservationDayMapper.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ruoyi-modules/rouyi-scale/src/main/resources/mapper/scale/ReservationDayMapper.xml b/ruoyi-modules/rouyi-scale/src/main/resources/mapper/scale/ReservationDayMapper.xml index 82cfdf6..736b9c8 100644 --- a/ruoyi-modules/rouyi-scale/src/main/resources/mapper/scale/ReservationDayMapper.xml +++ b/ruoyi-modules/rouyi-scale/src/main/resources/mapper/scale/ReservationDayMapper.xml @@ -9,7 +9,7 @@ left join (select count(*) as num, day_id from m_reservation_time where counselor_id = #{userId} - and status = 1 + and status > 0 group by day_id) t on t.day_id = rd.id where rd.counselor_id = #{userId} and DATE_FORMAT(rd.day_time, '%Y-%m') = #{time} @@ -25,7 +25,7 @@ left join m_reservation_order ro on ro.time_id = rt.id left join sys_user u on u.user_id = ro.create_by where rt.counselor_id = #{userId} - and DATE_FORMAT(rd.day_time, '%Y-%m') = #{time} + and DATE_FORMAT(rd.day_time, '%Y-%m-%d') = #{time} and rt.`status` > 0