| | |
| | | and b.phone like concat('%',#{studentPhone},'%') |
| | | </if> |
| | | <if test="studentId!=null"> |
| | | and a.student_id=#{studentId} |
| | | and a.student_id=#{studentId} and (d.stop_time is null or d.stop_time > now()) |
| | | </if> |
| | | </where> |
| | | order by a.id desc |
| | |
| | | select a.*,b.name as phase_name,c.id as company_id,c.name as company_name from ex_phase_student a |
| | | left join ex_course_phase b on b.id=a.phase_id |
| | | left join sys_company c on c.id=b.company_id |
| | | where a.student_id=#{studentId} |
| | | where b.del_flag = 0 and a.student_id=#{studentId} |
| | | </select> |
| | | |
| | | |