package com.ssm.manage.mapper;

import com.ssm.core.mapper.BaseMapper;
import com.ssm.manage.entity.RefundOrderList;
import com.ssm.manage.extendEntity.StoreDaily;
import com.ssm.manage.query.RefundOrderResquest;
import com.ssm.manage.query.StoreDailyRequest;
import com.ssm.manage.response.RefundDayVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

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

@Component
public interface RefundOrderListMapper extends BaseMapper<RefundOrderList> {
    StoreDaily selectDayRecord(StoreDailyRequest storeDailyRequest);
    //新查询退款
    List<StoreDaily> selectRefund(StoreDailyRequest storeDailyRequest);
    List<RefundOrderList> selectFKJ(RefundOrderList refundOrderResquest);
    List<RefundOrderList> selectFKJByDate(RefundOrderList refundOrderResquest);

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

    List<RefundOrderList> selectNew(RefundOrderResquest refundOrderList1);
}