| | |
| | | /** 创建老师 */ |
| | | private Integer teacherId; |
| | | |
| | | /** 是否是继续考试 */ |
| | | private Boolean isContinue; |
| | | |
| | | public static ExamVO getVoByEntity(@NonNull Exam entity, ExamVO vo) { |
| | | if(vo == null) { |
| | | vo = new ExamVO(); |
| | |
| | | <result column="teacher_id" property="teacherId" /> |
| | | <result column="class_name" property="className" /> |
| | | <result column="name" property="examPaperName" /> |
| | | <result column="isContinue" property="isContinue" /> |
| | | </resultMap> |
| | | |
| | | |
| | |
| | | TE.teacher_id, |
| | | TE.id, |
| | | TC.class_name, |
| | | TEP.name |
| | | TEP.name, |
| | | (SELECT IF(COUNT(*) > 0, true, false) FROM t_exam_submit_temp WHERE user_id = #{userId} AND status = 'temp') as isContinue |
| | | FROM |
| | | t_exam TE |
| | | INNER JOIN t_classes TC ON TC.id = TE.classes_id AND TC.deleted = 0 AND TC.status = 'normal' |