|
@@ -101,14 +101,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
<!-- 查询用户的完课积分领取记录列表 -->
|
|
<!-- 查询用户的完课积分领取记录列表 -->
|
|
|
<select id="selectRecordsByUser" resultMap="LiveCompletionPointsRecordResult">
|
|
<select id="selectRecordsByUser" resultMap="LiveCompletionPointsRecordResult">
|
|
|
SELECT * FROM live_completion_points_record
|
|
SELECT * FROM live_completion_points_record
|
|
|
- WHERE user_id = #{userId}
|
|
|
|
|
|
|
+ WHERE user_id = #{userId} and receiver_status = 1
|
|
|
ORDER BY current_completion_date DESC
|
|
ORDER BY current_completion_date DESC
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<!-- 根据ID查询 -->
|
|
<!-- 根据ID查询 -->
|
|
|
<select id="selectById" resultMap="LiveCompletionPointsRecordResult">
|
|
<select id="selectById" resultMap="LiveCompletionPointsRecordResult">
|
|
|
SELECT * FROM live_completion_points_record
|
|
SELECT * FROM live_completion_points_record
|
|
|
- WHERE id = #{id}
|
|
|
|
|
|
|
+ WHERE id = #{id} for update
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
</mapper>
|
|
</mapper>
|