|
|
@@ -2,7 +2,6 @@ package com.fs.course.mapper;
|
|
|
|
|
|
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;
|
|
|
@@ -10,8 +9,6 @@ import org.apache.ibatis.annotations.Param;
|
|
|
import org.apache.ibatis.annotations.Select;
|
|
|
import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
-import javax.validation.constraints.NotNull;
|
|
|
-
|
|
|
/**
|
|
|
* 课程公司红包Mapper接口
|
|
|
*
|
|
|
@@ -107,12 +104,12 @@ public interface FsUserCourseVideoRedPackageMapper
|
|
|
int updateBatchDelFlag(@Param("ids") Long [] ids, @Param("delFlag") Integer delFlag);
|
|
|
|
|
|
@Delete("<script>" +
|
|
|
- "DELETE FROM fs_user_course_video_red_package WHERE video_id IN " +
|
|
|
+ "DELETE FROM fs_user_course_video_red_package WHERE period_id IN " +
|
|
|
"<foreach collection='ids' item='id' open='(' separator=',' close=')'>" +
|
|
|
"#{id}" +
|
|
|
"</foreach>" +
|
|
|
"</script>")
|
|
|
- int deleteBatchByVideoIds(@Param("ids") Long[] ids);
|
|
|
+ int deleteBatchByPeriodIds(@Param("ids") Long[] ids);
|
|
|
|
|
|
|
|
|
Integer selectRedPacketByCompanyCount(@Param("videoId") Long videoId,@Param("companyId") Long companyId, @Param("periodId") Long periodId);
|