|
@@ -171,6 +171,21 @@
|
|
|
ORDER BY t1.TSO_ID desc
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getTmsMyStudentInfoTempList" parameterType="com.miaxis.tms.dto.TmsStudentInfoTempDTO" resultMap="TmsStudentInfoTempResultMap">
|
|
|
+ select t1.TSO_ID, t1.TSO_IDCARD, t1.TSO_NAME,t1.TSO_SEX,t1.Tso_Phone,t1.TSO_APPLYDATE, t1.TSO_STATE , t1.TSO_TRAINTYPE, t1.tso_photo_path, t1.TSO_REMARK,'1' as bm_type
|
|
|
+ from tms_student_info_temp@tms${city} t1
|
|
|
+ <where>
|
|
|
+ AND t1.TSO_BUSITYPE in ('0', '1')
|
|
|
+ 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="coachId!=null" > AND ( t1.TSO_COACHID = #{coachId,jdbcType=NUMERIC }
|
|
|
+ or t1.TSO_COACH_LEADER = #{coachId,jdbcType=NUMERIC } ) </if>
|
|
|
+ </where>
|
|
|
+ ORDER BY t1.TSO_ID desc
|
|
|
+ </select>
|
|
|
+
|
|
|
|
|
|
<select id="getTmsStudentInfoTempList" parameterType="com.miaxis.tms.dto.TmsStudentInfoTempDTO" resultMap="TmsStudentInfoTempResultMap">
|
|
|
select t1.TSO_ID, t1.TSO_IDCARD, t1.TSO_NAME,t1.TSO_SEX,t1.Tso_Phone,t1.TSO_APPLYDATE, t1.TSO_STATE , t1.TSO_TRAINTYPE, t1.tso_photo_path, t1.TSO_REMARK,'1' as bm_type
|
|
@@ -180,7 +195,12 @@
|
|
|
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 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=")">
|
|
|
+ #{sid}
|
|
|
+ </foreach>
|
|
|
+ </if>
|
|
|
<if test="coachId!=null" > AND ( t1.TSO_COACHID = #{coachId,jdbcType=NUMERIC }
|
|
|
or t1.TSO_COACH_LEADER = #{coachId,jdbcType=NUMERIC } ) </if>
|
|
|
</where>
|