parent
0d1a331144
commit
2cc709e009
8 changed files with 98 additions and 5 deletions
@ -0,0 +1,27 @@ |
||||
<?xml version="1.0" encoding="UTF-8"?> |
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.teaching.backend.mapper.favour.SeCourseFavourMapper"> |
||||
|
||||
<select id="queryAllNewCollectCourse" resultType="java.lang.String" |
||||
parameterType="java.lang.String"> |
||||
SELECT |
||||
scf.course_id courseId |
||||
FROM |
||||
se_course_favour scf |
||||
ORDER BY |
||||
createtime |
||||
DESC LIMIT 1; |
||||
</select> |
||||
<select id="queryStudentNewCollectCourse" resultType="java.lang.String"> |
||||
SELECT |
||||
scf.course_id courseId |
||||
FROM |
||||
se_course_favour scf |
||||
WHERE |
||||
scf.user_id = #{userId} |
||||
ORDER BY |
||||
createtime |
||||
DESC LIMIT 1; |
||||
</select> |
||||
|
||||
</mapper> |
Loading…
Reference in new issue