|
@@ -9,14 +9,14 @@ import org.apache.ibatis.annotations.Update;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 部门视频疗包展示关联Mapper接口
|
|
* 部门视频疗包展示关联Mapper接口
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @author fs
|
|
* @author fs
|
|
|
* @date 2025-10-11
|
|
* @date 2025-10-11
|
|
|
*/
|
|
*/
|
|
|
public interface FsDepVideoShowMapper extends BaseMapper<FsDepVideoShow>{
|
|
public interface FsDepVideoShowMapper extends BaseMapper<FsDepVideoShow>{
|
|
|
/**
|
|
/**
|
|
|
* 部门视频疗包展示关联
|
|
* 部门视频疗包展示关联
|
|
|
- *
|
|
|
|
|
|
|
+ *
|
|
|
* @param videoId, depId 部门视频疗包展示关联主键
|
|
* @param videoId, depId 部门视频疗包展示关联主键
|
|
|
* @return 部门视频疗包展示关联
|
|
* @return 部门视频疗包展示关联
|
|
|
*/
|
|
*/
|
|
@@ -37,7 +37,13 @@ public interface FsDepVideoShowMapper extends BaseMapper<FsDepVideoShow>{
|
|
|
@Insert("INSERT INTO fs_dep_video_show(video_id, is_show, dep_id) VALUES(#{videoId}, #{isShow}, #{depId})")
|
|
@Insert("INSERT INTO fs_dep_video_show(video_id, is_show, dep_id) VALUES(#{videoId}, #{isShow}, #{depId})")
|
|
|
int insertFsDepVideoShowByVideoId(FsDepVideoShow fsDepVideoShow);
|
|
int insertFsDepVideoShowByVideoId(FsDepVideoShow fsDepVideoShow);
|
|
|
|
|
|
|
|
- @Update("UPDATE fs_dep_video_show SET is_show = #{isShow} WHERE video_id = #{videoId} AND dep_id = #{depId}")
|
|
|
|
|
|
|
+ @Update("<script>" +
|
|
|
|
|
+ "UPDATE fs_dep_video_show SET is_show = #{isShow} " +
|
|
|
|
|
+ "WHERE video_id = #{videoId} " +
|
|
|
|
|
+ "<if test='depId != null'>" +
|
|
|
|
|
+ "AND dep_id = #{depId} " +
|
|
|
|
|
+ "</if>" +
|
|
|
|
|
+ "</script>")
|
|
|
int updateByVideoId(FsDepVideoShow fsDepVideoShow);
|
|
int updateByVideoId(FsDepVideoShow fsDepVideoShow);
|
|
|
|
|
|
|
|
}
|
|
}
|