Sfoglia il codice sorgente

修复课程学生关联bug

honorfire 7 mesi fa
parent
commit
87dac1af18

+ 3 - 0
snowy-plugin/snowy-plugin-disk/snowy-plugin-disk-func/src/main/java/vip/xiaonuo/disk/mapper/mapping/CourseStudentRelateMapper.xml

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