| | |
| | | <result column="real_name" property="realName"/> |
| | | <result column="do_time" property="doTime"/> |
| | | <result column="exam_submit" property="examSubmit"/> |
| | | <result column="status" property="status" typeHandler="org.apache.ibatis.type.EnumOrdinalTypeHandler"/> |
| | | <result column="status" property="status" typeHandler="org.apache.ibatis.type.EnumTypeHandler"/> |
| | | <result column="phone" property="phone"/> |
| | | <result column="update_time" property="updateTime"/> |
| | | <result column="mark_paper_status" property="markPaperStatus" typeHandler="org.apache.ibatis.type.EnumOrdinalTypeHandler"/> |
| | | <result column="mark_paper_status" property="markPaperStatus" typeHandler="org.apache.ibatis.type.EnumTypeHandler"/> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | TU.phone |
| | | FROM t_classes_user TCU |
| | | LEFT JOIN t_user TU ON TU.id = TCU.user_id |
| | | WHERE TCU.deleted = 0 |
| | | WHERE TCU.deleted = 0 AND TCU.classes_id = #{query.classesId} |
| | | <if test="query.studentName != null and query.studentName != ''">AND TU.real_name like concat('%', |
| | | #{query.studentName}, '%') |
| | | </if> |
| | |
| | | SELECT |
| | | TU.id, |
| | | TU.real_name, |
| | | TU.phone, |
| | | EST.do_time, |
| | | EST.status, |
| | | EST.exam_submit, |
| | | EST.mark_paper_status |
| | | TU.phone |
| | | FROM |
| | | t_classes_user TCU |
| | | INNER JOIN t_user TU ON TU.id = TCU.user_id AND TCU.classes_id = #{classesId} |
| | | LEFT JOIN t_exam_submit_temp EST ON EST.user_id = TU.id |
| | | WHERE |
| | | TCU.deleted = 0 |
| | | </select> |
| | | |
| | | <select id="getClassesByUserId" resultType="java.lang.Integer"> |
| | | select classes_id |
| | | from t_classes_user |
| | | where user_id = #{userId} and deleted = 0 |
| | | </select> |
| | | </mapper> |