This commit is contained in:
cjw 2024-08-21 14:49:15 +08:00
parent c790894d86
commit 57706319ae
1 changed files with 2 additions and 2 deletions

View File

@ -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
</select>
</mapper>