@@ -48,6 +48,7 @@
IFNULL (su.LATEST_LOGIN_TIME,'') AS latestLoginTime
FROM COURSE_STUDENT_RELATE csr
LEFT JOIN SYS_USER su ON csr.USER_ID =su.ID
+ WHERE csr.DELETE_FLAG ='NOT_DELETE'
<if test="id !=null and id != ''">
and csr.ID=#{id}
</if>