|
@@ -207,10 +207,10 @@
|
|
|
and ui.username like CONCAT('%', #{username,jdbcType=VARCHAR}, '%')
|
|
and ui.username like CONCAT('%', #{username,jdbcType=VARCHAR}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
<if test="startL != null">
|
|
<if test="startL != null">
|
|
|
- and l.lecture_time <![CDATA[ >= ]]> #{startL,jdbcType=TIMESTAPM}
|
|
|
|
|
|
|
+ and l.lecture_time <![CDATA[ >= ]]> #{startL,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="endL != null">
|
|
<if test="endL != null">
|
|
|
- and l.lecture_time <![CDATA[ < ]]> #{endL,jdbcType=TIMESTAPM}
|
|
|
|
|
|
|
+ and l.lecture_time <![CDATA[ <= ]]> #{endL,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
|
order by l.lecture_time desc
|
|
order by l.lecture_time desc
|
|
|
<if test="page_sql!=null">
|
|
<if test="page_sql!=null">
|
|
@@ -238,7 +238,7 @@
|
|
|
and l.lecture_time <![CDATA[ >= ]]> #{startL,jdbcType=TIMESTAMP}
|
|
and l.lecture_time <![CDATA[ >= ]]> #{startL,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
|
<if test="endL != null">
|
|
<if test="endL != null">
|
|
|
- and l.lecture_time <![CDATA[ < ]]> #{endL,jdbcType=TIMESTAMP}
|
|
|
|
|
|
|
+ and l.lecture_time <![CDATA[ <= ]]> #{endL,jdbcType=TIMESTAMP}
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -312,4 +312,55 @@
|
|
|
l.deleted_sign = 0
|
|
l.deleted_sign = 0
|
|
|
and l.hot = 1
|
|
and l.hot = 1
|
|
|
</select>
|
|
</select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="findLectureList" resultType="com.goafanti.lecture.bo.LectureListBo">
|
|
|
|
|
+ select
|
|
|
|
|
+ l.id,
|
|
|
|
|
+ l.uid,
|
|
|
|
|
+ l.name,
|
|
|
|
|
+ l.lecture_time as lectureTime,
|
|
|
|
|
+ l.summary,
|
|
|
|
|
+ l.lecture_url as lectureUrl,
|
|
|
|
|
+ ui.username,
|
|
|
|
|
+ l.hot,
|
|
|
|
|
+ l.dynamic,
|
|
|
|
|
+ l.end_time as endTime
|
|
|
|
|
+ from lecture l
|
|
|
|
|
+ left join user_identity ui on ui.uid = l.uid
|
|
|
|
|
+ where
|
|
|
|
|
+ l.deleted_sign = 0
|
|
|
|
|
+ order by lecture_time desc
|
|
|
|
|
+ limit 0 , 5
|
|
|
|
|
+ </select>
|
|
|
|
|
+
|
|
|
|
|
+ <select id="findMoreLectureListByPage" parameterType="String" resultType="com.goafanti.lecture.bo.LectureListBo">
|
|
|
|
|
+ select
|
|
|
|
|
+ l.id,
|
|
|
|
|
+ l.uid,
|
|
|
|
|
+ l.name,
|
|
|
|
|
+ l.lecture_time as lectureTime,
|
|
|
|
|
+ l.summary,
|
|
|
|
|
+ l.lecture_url as lectureUrl,
|
|
|
|
|
+ ui.username,
|
|
|
|
|
+ l.hot,
|
|
|
|
|
+ l.dynamic,
|
|
|
|
|
+ l.end_time as endTime
|
|
|
|
|
+ from lecture l
|
|
|
|
|
+ left join user_identity ui on ui.uid = l.uid
|
|
|
|
|
+ where
|
|
|
|
|
+ l.deleted_sign = 0
|
|
|
|
|
+ order by l.lecture_time desc
|
|
|
|
|
+ <if test="page_sql!=null">
|
|
|
|
|
+ ${page_sql}
|
|
|
|
|
+ </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>
|
|
</mapper>
|