package com.kiisoo.ic.activity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kiisoo.ic.activity.bean.ActivityScheduleVO;
import com.kiisoo.ic.activity.entity.PmnActivityInstance;
import com.kiisoo.ic.activity.entity.PmnActivityPromotionParam;
import com.kiisoo.ic.activity.bean.ActivityInstanceVO;
import com.kiisoo.ic.generalize.entity.PrivilageOrganizational;
import com.kiisoo.ic.store.entity.PoiStore;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.Date;
import java.util.List;

@Repository
public interface PmnActivityInstanceDOMapper extends BaseMapper<PmnActivityInstance> {

    List<PmnActivityPromotionParam> selectParamsByInstanceId(Long instanceId);

    List<PoiStore> selectStoresByInstanceId(Long instanceId);
    List<PrivilageOrganizational> selectOrgByInstanceId(Long instanceId);

    List<ActivityInstanceVO> pageVO(Date startDate, Date endDate, Long organizationId, Long storeId, Integer status, String categoryCode, @Param("storeIds") Long[] storeIds, @Param("beginTime") Date beginTime, @Param("endTime") Date endTime);

    ActivityInstanceVO getVO(Long instanceId);
}
