|
@@ -136,6 +136,33 @@
|
|
|
ORDER BY t1.TSO_ID desc
|
|
|
</select>
|
|
|
|
|
|
+ <select id="getTmsStudentInfoList" 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
|
|
|
+ from tms_student_info@tms${city} t1
|
|
|
+ left join tms_student_train_info@tms${city} t2
|
|
|
+ on t1.tso_id = t2.sri_student_id
|
|
|
+ <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="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="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>
|
|
|
+ </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
|
|
@@ -539,4 +566,6 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|