package com.xxfc.platform.activity.mapper;

import com.xxfc.platform.activity.dto.ActivityPopularizeRelationDTO;
import com.xxfc.platform.activity.entity.ActivityPopularizeRelation;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * 活动的参与者关系表
 *
 * @author zjw
 * @email 18178966185@163.com
 * @date 2019-07-17 19:51:17
 */
public interface ActivityPopularizeRelationMapper extends Mapper<ActivityPopularizeRelation> {

    List<ActivityPopularizeRelationDTO> findActivityPopularizeRelationsByActivityIdAndTime(@Param("activityId") Integer activityId, @Param("startTime") Long startTime, @Param("endTime") Long endTime);

    Integer getByUserIdAndPopularizeId(ActivityPopularizeRelation activityPopularizeRelation);
}
