|
|
@@ -77,6 +77,12 @@ public interface FsUserCourseVideoRedPackageMapper
|
|
|
@Select("select * from fs_user_course_video_red_package where video_id =#{videoId} and company_id = #{companyId} and period_id = #{periodId}")
|
|
|
FsUserCourseVideoRedPackage selectRedPacketByCompanyId(@Param("videoId") Long videoId,@Param("companyId") Long companyId, @Param("periodId") Long periodId);
|
|
|
|
|
|
+
|
|
|
+ @Select("select * from fs_user_course_video_red_package where (del_flag = '0' or del_flag is null) " +
|
|
|
+ "and data_type = 1 and video_id = #{videoId} and company_id = #{companyId} " +
|
|
|
+ "and (period_id is null or period_id = 0) order by id desc limit 1")
|
|
|
+ FsUserCourseVideoRedPackage selectRedPacketByCompanyIdZd(@Param("videoId") Long videoId, @Param("companyId") Long companyId);
|
|
|
+
|
|
|
/**
|
|
|
* 批量查询匹配的红包数据
|
|
|
*
|