|
@@ -122,6 +122,9 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<if test="agentId != null ">
|
|
<if test="agentId != null ">
|
|
|
AND (agent_id = #{agentId} OR agent_id IN ( SELECT t.agent_id FROM dz_agent t WHERE t.agent_id=#{agentId} ))
|
|
AND (agent_id = #{agentId} OR agent_id IN ( SELECT t.agent_id FROM dz_agent t WHERE t.agent_id=#{agentId} ))
|
|
|
</if>
|
|
</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 )
|
|
|
|
|
+ </if>
|
|
|
<if test="leafAgentId != null "> and c.leaf_agent_id = #{leafAgentId}</if>
|
|
<if test="leafAgentId != null "> and c.leaf_agent_id = #{leafAgentId}</if>
|
|
|
<if test="campusId != null "> and c.campus_id = #{campusId}</if>
|
|
<if test="campusId != null "> and c.campus_id = #{campusId}</if>
|
|
|
<if test="campusClassId != null "> and c.campus_class_id = #{campusClassId}</if>
|
|
<if test="campusClassId != null "> and c.campus_class_id = #{campusClassId}</if>
|