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