

package com.yami.shop.dao;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yami.shop.bean.app.dto.MyOrderDto;
import com.yami.shop.bean.app.dto.MyOrderItemDto;
import com.yami.shop.bean.app.dto.OrderCountData;
import com.yami.shop.bean.distribution.UserShoppingDataDto;
import com.yami.shop.bean.model.ExportTask;
import com.yami.shop.bean.model.Order;
import com.yami.shop.bean.param.*;
import com.yami.shop.bean.vo.ExportTaskVo;
import com.yami.shop.bean.vo.OrderCountVo;
import com.yami.shop.common.util.PageAdapter;
import com.yami.shop.common.util.PageParam;
import org.apache.ibatis.annotations.Param;

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

public interface ExportTaskMapper extends BaseMapper<ExportTask> {


    ExportTask findByUserIdAndStatusAndType(@Param("userId") Long userId,@Param("exportStatus") int exportStatus,@Param("exportType") int exportType);

    ExportTask findByUserIdAndId(@Param("id") String fileId,@Param("userId")  Long userId);

    IPage<ExportTaskVo> findPage(@Param("page") PageParam<ExportTaskVo> page,@Param("userId") Long userId,@Param("exportType") Integer exportType);
}
