|
@@ -116,7 +116,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
- <select id="getTmsStudentInfoList" parameterType="com.miaxis.tms.dto.TmsStudentInfoDTO" resultMap="TmsStudentInfoResultMap">
|
|
|
+ <select id="getTmsMyStudentInfoList" parameterType="com.miaxis.tms.dto.TmsStudentInfoDTO" resultMap="TmsStudentInfoResultMap">
|
|
|
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,
|
|
|
t2.Sri_Train_One_Exam_Status,t2.Sri_Train_One_Exam_Time,t2.Sri_Train_TWO_Exam_Status,t2.Sri_Train_Two_Exam_Time,
|
|
|
t2.Sri_Train_Three_Exam_Status,t2.Sri_Train_Three_Exam_Time,t2.Sri_Train_Four_Exam_Status,t2.Sri_Train_Four_Exam_Time,'2' as bm_type
|
|
@@ -128,14 +128,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 in
|
|
|
- <foreach item="sid" index="index" collection="schoolId.split(',')" open="(" separator="," close=")">
|
|
|
- #{sid}
|
|
|
- </foreach>
|
|
|
- </if>
|
|
|
-
|
|
|
+ <if test="schoolId != null "> 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>
|