|
@@ -128,19 +128,19 @@
|
|
<if test="studentId != null and studentId != ''">
|
|
<if test="studentId != null and studentId != ''">
|
|
and tees.student_id = #{studentId}
|
|
and tees.student_id = #{studentId}
|
|
</if>
|
|
</if>
|
|
- and tee.enable = 1
|
|
|
|
- and teea.enable = 1
|
|
|
|
- and tees.enable = 1
|
|
|
|
- <if test="orgId != null and orgId != ''">
|
|
|
|
- and tee.org_id = #{orgId}
|
|
|
|
- </if>
|
|
|
|
- <if test="examId != null and examId != ''">
|
|
|
|
- and tee.id = #{examId}
|
|
|
|
- </if>
|
|
|
|
- <!--and IF(tee.mode = 'TOGETHER', teea.start_time >= date_sub(now(),
|
|
|
|
- interval IFNULL(teea.opening_seconds, tee.opening_seconds) second),1 = 1 )-->
|
|
|
|
|
|
+ and tee.enable = 1
|
|
|
|
+ and teea.enable = 1
|
|
|
|
+ and tees.enable = 1
|
|
|
|
+ <if test="orgId != null and orgId != ''">
|
|
|
|
+ and tee.org_id = #{orgId}
|
|
|
|
+ </if>
|
|
|
|
+ <if test="examId != null and examId != ''">
|
|
|
|
+ and tee.id = #{examId}
|
|
|
|
+ </if>
|
|
|
|
+ <!--and IF(tee.mode = 'TOGETHER', teea.start_time >= date_sub(now(),
|
|
|
|
+ interval IFNULL(teea.opening_seconds, tee.opening_seconds) second),1 = 1 )-->
|
|
</where>
|
|
</where>
|
|
- ) t
|
|
|
|
|
|
+ ) t
|
|
<where>
|
|
<where>
|
|
t.reallyTime <![CDATA[ <= ]]> diffSum + 15
|
|
t.reallyTime <![CDATA[ <= ]]> diffSum + 15
|
|
and t.reallyTime <![CDATA[ >= ]]> 0
|
|
and t.reallyTime <![CDATA[ >= ]]> 0
|
|
@@ -149,9 +149,9 @@
|
|
|
|
|
|
<select id="examPrivilegeQuery" resultType="com.qmth.themis.business.entity.TEExam">
|
|
<select id="examPrivilegeQuery" resultType="com.qmth.themis.business.entity.TEExam">
|
|
select
|
|
select
|
|
- *
|
|
|
|
|
|
+ *
|
|
from
|
|
from
|
|
- t_e_exam tee
|
|
|
|
|
|
+ t_e_exam tee
|
|
where
|
|
where
|
|
EXISTS(
|
|
EXISTS(
|
|
select
|
|
select
|