|
@@ -136,7 +136,7 @@
|
|
|
AND t1.TSO_LOGOUT = 0
|
|
|
<if test="appCoachId!=null" > AND t1.TSO_APP_COACH_ID = #{appCoachId,jdbcType=NUMERIC } </if>
|
|
|
<if test="field != null and field != ''"> AND (t1.Tso_Name like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.TSO_IDCARD like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.Tso_Phone like '%' || #{field,jdbcType=VARCHAR} || '%') </if>
|
|
|
- <if test="schoolId != null "> and t1.TSO_SCHOOL_ID = #{schoolId,jdbcType=NUMERIC} </if>
|
|
|
+ <if test="schoolId != null and schoolId!=''"> and t1.TSO_SCHOOL_ID = #{schoolId,jdbcType=NUMERIC} </if>
|
|
|
<if test="state != null and state != ''"> AND t1.TSO_STATE = #{state,jdbcType=VARCHAR }</if>
|
|
|
<if test="coachId!=null" > AND ( t1.TSO_COACHID = #{coachId,jdbcType=NUMERIC }
|
|
|
or t1.TSO_COACH_LEADER = #{coachId,jdbcType=NUMERIC } ) </if>
|
|
@@ -156,7 +156,6 @@
|
|
|
AND t1.TSO_LOGOUT = 0
|
|
|
<if test="appCoachId!=null" > AND t1.TSO_APP_COACH_ID = #{appCoachId,jdbcType=NUMERIC } </if>
|
|
|
<if test="field != null and field != ''"> AND (t1.Tso_Name like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.TSO_IDCARD like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.Tso_Phone like '%' || #{field,jdbcType=VARCHAR} || '%') </if>
|
|
|
- <!--<if test="schoolId != null "> and t1.TSO_SCHOOL_ID = #{schoolId,jdbcType=NUMERIC} </if>-->
|
|
|
|
|
|
<if test="schoolId != null and schoolId !='' "> and t1.TSO_SCHOOL_ID in
|
|
|
<foreach item="sid" index="index" collection="schoolId.split(',')" open="(" separator="," close=")">
|
|
@@ -179,7 +178,7 @@
|
|
|
AND t1.TSO_LOGOUT = 0
|
|
|
<if test="appCoachId!=null" > AND t1.TSO_APP_COACH_ID = #{appCoachId,jdbcType=NUMERIC } </if>
|
|
|
<if test="field != null and field != ''"> AND (t1.Tso_Name like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.TSO_IDCARD like '%' || #{field,jdbcType=VARCHAR} || '%' or t1.Tso_Phone like '%' || #{field,jdbcType=VARCHAR} || '%') </if>
|
|
|
- <if test="schoolId != null "> and t1.TSO_SCHOOL_ID = #{schoolId,jdbcType=NUMERIC} </if>
|
|
|
+ <if test="schoolId != null and schoolId !='' "> and t1.TSO_SCHOOL_ID = #{schoolId,jdbcType=NUMERIC} </if>
|
|
|
<if test="coachId!=null" > AND ( t1.TSO_COACHID = #{coachId,jdbcType=NUMERIC }
|
|
|
or t1.TSO_COACH_LEADER = #{coachId,jdbcType=NUMERIC } ) </if>
|
|
|
</where>
|