|
|
@@ -123,7 +123,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND (agent_id = #{agentId} OR agent_id IN ( SELECT t.agent_id FROM dz_agent t WHERE t.agent_id=#{agentId} ))
|
|
|
</if>
|
|
|
<if test="teacherId != null ">
|
|
|
- AND c.class_id IN ( SELECT t.class_id FROM dz_teacher_class t WHERE t.teacher_id=#{teacherId} and now() < t.out_date )
|
|
|
+ AND (c.class_id IN ( SELECT t.class_id FROM dz_teacher_class t WHERE t.teacher_id=#{teacherId} and now() < t.out_date )
|
|
|
+ or c.campus_class_id IN ( SELECT t.class_id FROM dz_teacher_class t WHERE t.teacher_id=#{teacherId} and now() < t.out_date ))
|
|
|
</if>
|
|
|
<if test="leafAgentId != null "> and c.leaf_agent_id = #{leafAgentId}</if>
|
|
|
<if test="campusId != null "> and c.campus_id = #{campusId}</if>
|
|
|
@@ -401,7 +402,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
AND T0.campus_id = #{campusId}
|
|
|
</if>
|
|
|
<if test="teacherId != null">
|
|
|
- AND T0.class_id IN ( SELECT t.class_id FROM dz_teacher_class t WHERE t.teacher_id=#{teacherId} and now() < t.out_date )
|
|
|
+ AND (T0.class_id IN ( SELECT t.class_id FROM dz_teacher_class t WHERE t.teacher_id=#{teacherId} and now() < t.out_date )
|
|
|
+ or T0.campus_class_id IN ( SELECT t.class_id FROM dz_teacher_class t WHERE t.teacher_id=#{teacherId} and now() < t.out_date ))
|
|
|
</if>
|
|
|
<if test="openTimeBegin != null and openTimeBegin != ''">
|
|
|
AND date(T0.open_time) >= date(#{openTimeBegin})
|