|
@@ -5,6 +5,7 @@ import java.util.List;
|
|
|
import com.fs.course.domain.FsUserCourseVideo;
|
|
|
import com.fs.course.domain.FsUserCourseVideoRedPackage;
|
|
|
import com.fs.course.param.FsUserCourseVideoParam;
|
|
|
+import org.apache.ibatis.annotations.Delete;
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
@@ -103,5 +104,14 @@ public interface FsUserCourseVideoRedPackageMapper
|
|
|
"</script>")
|
|
|
int updateBatchDelFlag(@Param("ids") Long [] ids, @Param("delFlag") Integer delFlag);
|
|
|
|
|
|
+ @Delete("<script>" +
|
|
|
+ "DELETE FROM fs_user_course_video_red_package WHERE video_id IN " +
|
|
|
+ "<foreach collection='ids' item='id' open='(' separator=',' close=')'>" +
|
|
|
+ "#{id}" +
|
|
|
+ "</foreach>" +
|
|
|
+ "</script>")
|
|
|
+ int deleteBatchByVideoIds(@Param("ids") Long[] ids);
|
|
|
+
|
|
|
+
|
|
|
Integer selectRedPacketByCompanyCount(@Param("videoId") Long videoId,@Param("companyId") Long companyId, @Param("periodId") Long periodId);
|
|
|
}
|