|
|
@@ -333,7 +333,7 @@
|
|
|
limit 0 , 5
|
|
|
</select>
|
|
|
|
|
|
- <select id="findMoreLectureListByPage" parameterType="String" resultType="com.goafanti.lecture.bo.LectureListBo">
|
|
|
+ <select id="findMoreLectureList" resultType="com.goafanti.lecture.bo.LectureListBo">
|
|
|
select
|
|
|
l.id,
|
|
|
l.uid,
|
|
|
@@ -350,17 +350,10 @@
|
|
|
where
|
|
|
l.deleted_sign = 0
|
|
|
order by l.lecture_time desc
|
|
|
- <if test="page_sql!=null">
|
|
|
- ${page_sql}
|
|
|
+ <if test="pageNo != null and pageSize != null">
|
|
|
+ limit #{pageNo,jdbcType=INTEGER}, #{pageSize,jdbcType=INTEGER}
|
|
|
</if>
|
|
|
</select>
|
|
|
|
|
|
- <select id="findMoreLectureCount" parameterType="String" resultType="java.lang.Integer">
|
|
|
- select
|
|
|
- count(1)
|
|
|
- from lecture l
|
|
|
- left join user_identity ui on ui.uid = l.uid
|
|
|
- where
|
|
|
- l.deleted_sign = 0
|
|
|
- </select>
|
|
|
+
|
|
|
</mapper>
|