package com.heyu.api.data.dao.vv;
/**
* <p>
* 活动 服务类
* </p>
*
* @author quyixiao
* @since 2025-10-25
*/

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.heyu.api.data.entity.vv.VvActivityEntity;
import com.lz.mybatis.plugin.annotations.Column;
import com.lz.mybatis.plugin.annotations.IF;
import com.lz.mybatis.plugin.annotations.LIKE;
import com.lz.mybatis.plugin.annotations.OrderBy;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface VvActivityDao extends BaseMapper<VvActivityEntity> {


	VvActivityEntity selectVvActivityById(@Param("id")Long id);


	Long insertVvActivity(VvActivityEntity vvActivity);


	Long insertOrUpdateVvActivity(VvActivityEntity vvActivity);


	int updateVvActivityById(VvActivityEntity vvActivity);


	int updateCoverVvActivityById(VvActivityEntity vvActivity);


    int deleteVvActivityById(@Param("id") Long id);

    @OrderBy(VvActivityEntity.id_)
    List<VvActivityEntity> selectByCondition(IPage page,
                                             @IF @LIKE String activityName,
                                             @IF @Column(VvActivityEntity.create_timestamp) Long minCreateTimestamp,
                                             @IF @Column(VvActivityEntity.create_timestamp) Long maxCreateTimestamp,
                                             @OrderBy @IF @Column(VvActivityEntity.create_timestamp) String createTimestampSort
    );





}