|
|
@@ -37,11 +37,59 @@
|
|
|
<if test="tExamPageParam.examType != null and tExamPageParam.examType != ''">
|
|
|
and a.EXAM_TYPE = #{tExamPageParam.examType}
|
|
|
</if>
|
|
|
+ <if test="tExamPageParam.createUser != null and tExamPageParam.createUser != ''">
|
|
|
+ and a.CREATE_USER = #{tExamPageParam.createUser}
|
|
|
+ </if>
|
|
|
and a.DELETED=0
|
|
|
</where>
|
|
|
order by a.CREATE_TIME desc
|
|
|
</select>
|
|
|
|
|
|
+
|
|
|
+ <select id="queryStudentList" resultType="vip.xiaonuo.exam.vo.TExamVo">
|
|
|
+ SELECT
|
|
|
+ a.ID id,
|
|
|
+ a.EXAM_NAME examName,
|
|
|
+ a.STUDENT_IDS studentIds,
|
|
|
+ a.EXAM_STATUS examStatus,
|
|
|
+ a.CREATE_TIME createTime,
|
|
|
+ a.CREATE_USER createUser,
|
|
|
+ a.UPDATE_TIME updateTime,
|
|
|
+ a.CHAPTER_ID chapterId,
|
|
|
+ a.START_TIME startTime,
|
|
|
+ a.END_TIME endTime,
|
|
|
+ a.PAPER_ID paperId,
|
|
|
+ a.DELETED deleted,
|
|
|
+ a.START_JOB_ID startJobId,
|
|
|
+ a.END_JOB_ID endJobId,
|
|
|
+ a.EXAM_TYPE examType,
|
|
|
+ a.SEMESTER_ID semesterId,
|
|
|
+ c.name semesterName,
|
|
|
+ a.course_id courseId
|
|
|
+ FROM
|
|
|
+ ONLINEEDU.T_EXAM a
|
|
|
+ LEFT JOIN SEMESTER c ON a.SEMESTER_ID =c.ID
|
|
|
+ <where>
|
|
|
+ <if test="tExamPageParam.examName != null and tExamPageParam.examName != ''">
|
|
|
+ a.EXAM_NAME like '%'||#{tExamPageParam.examName}||'%'
|
|
|
+ </if>
|
|
|
+ <if test="tExamPageParam.examStatus != null and tExamPageParam.examStatus != ''">
|
|
|
+ and a.EXAM_STATUS = #{tExamPageParam.examStatus}
|
|
|
+ </if>
|
|
|
+ <if test="tExamPageParam.semesterId != null and tExamPageParam.semesterId != ''">
|
|
|
+ and a.SEMESTER_ID = #{tExamPageParam.semesterId}
|
|
|
+ </if>
|
|
|
+ <if test="tExamPageParam.examType != null and tExamPageParam.examType != ''">
|
|
|
+ and a.EXAM_TYPE = #{tExamPageParam.examType}
|
|
|
+ </if>
|
|
|
+ <if test="tExamPageParam.createUser != null and tExamPageParam.createUser != ''">
|
|
|
+ and a.STUDENT_IDS like concat('%',#{tExamPageParam.createUser},'%')
|
|
|
+ </if>
|
|
|
+ and a.DELETED=0
|
|
|
+ </where>
|
|
|
+ order by a.CREATE_TIME desc
|
|
|
+ </select>
|
|
|
+
|
|
|
<select id="detail" resultType="vip.xiaonuo.exam.vo.TExamVo">
|
|
|
SELECT
|
|
|
a.ID id,
|