select t1.id as schedulingPersonId, t1.scheduling_time as schedulingTime,(select t2.name from ti_scheduling t2 where t2.id = t1. scheduling_id) as schedulingName from ti_scheduling_person t1
select t1.id as schedulingPersonId, t1.scheduling_time as schedulingTime,t1.scheduling_id as schedulingId,(select t2.name from ti_scheduling t2 where t2.id = t1. scheduling_id) as schedulingName from ti_scheduling_person t1
where t1.user_id=#{userId} and t1.scheduling_time like concat(#{time},'%')