|
@@ -95,6 +95,20 @@
|
|
|
<result property="loginFlag" column="LSL_LOGIN_FLAG" />
|
|
|
</resultMap>
|
|
|
|
|
|
+ <resultMap id="TmsStudentTeahLogResultMap" type="com.miaxis.tms.vo.TmsStudentTeachLogVo">
|
|
|
+ <result property="recnum" column="CRI_RECNUM" />
|
|
|
+ <result property="pxlxName" column="PXLX_NAME" />
|
|
|
+ <result property="mile" column="MILE" />
|
|
|
+ <result property="duration" column="CRI_DURATION" />
|
|
|
+ <result property="vaildTime" column="CRI_VAILD_TIME" />
|
|
|
+ <result property="trainSubject" column="CRI_TRAIN_SUBJECT" />
|
|
|
+ <result property="startTime" column="CRI_STARTTIME" />
|
|
|
+ <result property="endTime" column="CRI_ENDTIME" />
|
|
|
+ <result property="coachName" column="COACH_NAME" />
|
|
|
+ <result property="carLicnum" column="CAR_LICNUM" />
|
|
|
+ <result property="sim" column="TSO_REMARK" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
|
|
|
|
|
|
|
|
@@ -239,7 +253,7 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="getWzTmsStudentInfoById" parameterType="com.miaxis.tms.dto.TmsStudentInfoIdDTO" resultMap="TmsStudentInfoIdResultMap">
|
|
|
+ <select id="getWzTmsStudentInfoById" parameterType="com.miaxis.tms.dto.TmsStudentInfoApplyIdDTO" resultMap="TmsStudentInfoIdResultMap">
|
|
|
SELECT t.tso_id,
|
|
|
t.tso_cardtype,
|
|
|
t.tso_Idcard,
|
|
@@ -341,7 +355,7 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
- <select id="getWzOldTmsStudentInfoById" resultType="com.miaxis.tms.vo.TmsStudentInfoIdVo" resultMap="TmsStudentInfoIdResultMap">
|
|
|
+ <select id="getWzOldTmsStudentInfoById" parameterType="com.miaxis.tms.dto.TmsStudentInfoApplyIdDTO" resultMap="TmsStudentInfoIdResultMap">
|
|
|
SELECT t.tso_id,
|
|
|
t.tso_cardtype,
|
|
|
t.tso_Idcard,
|
|
@@ -479,7 +493,6 @@
|
|
|
</select>
|
|
|
|
|
|
|
|
|
-
|
|
|
<select id="getEveryYearStuCountBySchoolId" parameterType="com.miaxis.tms.dto.TmsBmYearListDTO" resultType="com.miaxis.tms.vo.TmsBmCountVo" >
|
|
|
SELECT TO_CHAR(tso_applydate, 'yyyy') AS dateTime, COUNT(1) AS stuCount
|
|
|
FROM tms_student_info@tms${city} t
|
|
@@ -497,4 +510,20 @@
|
|
|
update TMS_STUDENT_INFO@tms${city} set tso_app_coach_id = #{appCoachId} where tso_id = #{id}
|
|
|
</update>
|
|
|
|
|
|
+
|
|
|
+ <select id="getTmsStudentTeachLogById" parameterType="com.miaxis.tms.dto.TmsStudentInfoIdDTO" resultMap="TmsStudentTeahLogResultMap" >
|
|
|
+ SELECT CRI_RECNUM,DECODE(SUBSTR(T.CRI_SUBJCODE,0,1),1,'实操',2,'课堂教学',3,'模拟器教学',4,'远程教学','') PXLX_NAME,
|
|
|
+ round(t.cri_mileage/1000,3) as mile,
|
|
|
+ t.cri_duration,t.cri_vaild_time,CRI_TRAIN_SUBJECT,
|
|
|
+ t.cri_starttime,t.cri_endtime,c.TCI_NAME COACH_NAME,
|
|
|
+ car.tco_licnum CAR_LICNUM,t.cri_device_id sim
|
|
|
+ FROM TMS_TRAIN_CLASS_RECORD@tms${city} T LEFT JOIN TMS_SCHOOL_INFO@tms${city} S ON T.CRI_SCHOOL_ID = S.TSI_ID
|
|
|
+ LEFT JOIN TMS_STUDENT_INFO@tms${city} STU ON T.CRI_STUDENT_ID = STU.TSO_ID
|
|
|
+ LEFT JOIN TMS_COACH_INFO@tms${city} C ON T.CRI_COACH_ID = C.TCI_ID
|
|
|
+ LEFT JOIN tms_train_car_info@tms${city} car on car.tco_id=t.cri_train_car_id WHERE STU.TSO_ID = #{id}
|
|
|
+ ORDER BY T.cri_id DESC
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
</mapper>
|