package com.cool.store.mapper;

import com.cool.store.dto.partner.PartnerOpenNewShopPageDTO;
import com.cool.store.entity.OpenNewShopRecordDO;
import com.cool.store.request.PartnerOpenNewShopPageRequest;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface OpenNewShopRecordMapper extends Mapper<OpenNewShopRecordDO> {

    /**
     * 获取老加盟商开新店列表
     * @param request
     * @return
     */
    Page<PartnerOpenNewShopPageDTO> getPartnerOpenNewShopPage(@Param("request") PartnerOpenNewShopPageRequest request);

    /**
     * 获取待审核的记录
     * @param lineId
     * @return
     */
    OpenNewShopRecordDO getWaitAuditOpenNewShopRecord(@Param("lineId") Long lineId);

    /**
     * 获取老加盟商开新店列表
     * @param lineId
     * @return
     */
    List<OpenNewShopRecordDO> getOpenNewShopRecordList(@Param("lineId") Long lineId);

    /**
     * 删除老加盟商开新店
     * @param deleteIds
     * @return
     */
    Integer deleteOpenNewShopRecord(@Param("deleteIds") List<Long> deleteIds);
}