package com.ssm.manage.mapper;

import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.CardChangeList;
import com.ssm.manage.extendEntity.StoreDaily;
import com.ssm.manage.query.CardChangeListRequest;
import com.ssm.manage.query.StoreDailyRequest;
import com.ssm.manage.response.CardChangeDayVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

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

@Component
public interface CardChangeListMapper extends BaseMapper<CardChangeList> {
    List<CardChangeList> selectFKJ(CardChangeList cardChangeList);

    List<CardChangeDayVo> selectByDay(@Param("storeIds")List<Long> storeIds,@Param("startTime") Date startTime,@Param("endTime") Date endTime);

    List<StoreDaily> selectByDayGroupByDateAndStoreId(StoreDailyRequest storeDailyRequest);

    List<CardChangeList> selectNew(CardChangeListRequest cardChangeListRequest);

    List<CardChangeList> selectFKJByDate(CardChangeList cardChangeList);
}