123456789101112131415161718192021222324 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
- <mapper namespace="com.ym.mec.biz.dal.mapper.CoursePatrolEvaluationMapper">
-
- <select id="selectPage" resultType="com.ym.mec.biz.dal.wrapper.CoursePatrolEvaluationWrapper$CoursePatrolEvaluationInfo">
- SELECT
- t.*
- FROM course_patrol_evaluation t
- left join course_schedule cs on cs.id_ = t.course_schedule_id_
- left join sys_user su on cs.actual_teacher_id_ = su.id_
- <where>
- <if test="param.keyword != null and param.keyword != ''">
- and (su.real_name_ like concat('%',#{param.keyword},'%')
- or su.id_ like concat('%',#{param.keyword},'%')
- or su.phone_ like concat('%',#{param.keyword},'%'))
- </if>
- <if test="param.startTime != null">
- and cs.class_date_ <= date_format(#{param.startTime},'%Y-%m-%d')
- </if>
- </where>
- </select>
-
- </mapper>
|