|
@@ -106,10 +106,10 @@
|
|
|
</select>
|
|
|
<select id="listCourseForAudit" resultType="com.qmth.teachcloud.common.entity.BasicCourse">
|
|
|
SELECT
|
|
|
- bc.code code,
|
|
|
- bc.name name
|
|
|
+ bc.code code,
|
|
|
+ bc.name name
|
|
|
FROM
|
|
|
- basic_course bc
|
|
|
+ basic_course bc
|
|
|
<where>
|
|
|
EXISTS( SELECT
|
|
|
1
|
|
@@ -122,22 +122,6 @@
|
|
|
<if test="examId != null">
|
|
|
AND et.exam_id = #{examId}
|
|
|
</if>
|
|
|
- <if test="dpr != null">
|
|
|
- <if test="dpr.requestUserId != null">
|
|
|
- <if test="byCreateUser == true">
|
|
|
- AND et.create_id = #{dpr.requestUserId}
|
|
|
- </if>
|
|
|
- <if test="byAssignUser == true">
|
|
|
- AND et.user_id = #{dpr.requestUserId}
|
|
|
- </if>
|
|
|
- </if>
|
|
|
- <if test="dpr.orgIdSet != null and dpr.orgIdSet != '' and dpr.orgIdSet.size > 0">
|
|
|
- AND et.org_id IN
|
|
|
- <foreach collection="dpr.orgIdSet" item="item" index="index" open="(" separator="," close=")">
|
|
|
- #{item}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
- </if>
|
|
|
</where>)
|
|
|
<if test="enable != null">
|
|
|
and bc.enable = #{enable}
|
|
@@ -169,7 +153,27 @@
|
|
|
order by et.paper_number
|
|
|
</select>
|
|
|
<select id="listPaperNumberAudit" resultType="java.lang.String">
|
|
|
-
|
|
|
+ SELECT
|
|
|
+ et.paper_number
|
|
|
+ FROM
|
|
|
+ exam_task et
|
|
|
+ LEFT JOIN
|
|
|
+ basic_exam be ON et.exam_id = be.id
|
|
|
+ <where>
|
|
|
+ <if test="semesterId != null">
|
|
|
+ AND be.semester_id = #{semesterId}
|
|
|
+ </if>
|
|
|
+ <if test="examId != null">
|
|
|
+ AND et.exam_id = #{examId}
|
|
|
+ </if>
|
|
|
+ <if test="courseCode != null and courseCode != ''">
|
|
|
+ AND et.course_code = #{courseCode}
|
|
|
+ </if>
|
|
|
+ <if test="userId != null">
|
|
|
+ AND et.user_id = #{userId}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by et.paper_number
|
|
|
</select>
|
|
|
<select id="listPrintPlan" resultType="com.qmth.distributed.print.business.bean.result.PrintPlanBrief">
|
|
|
select a.id, a.name, a.status from exam_print_plan a
|