package com.sckw.mine.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sckw.mine.entity.KwBusinessMineOrder;
import com.sckw.mine.entity.req.MineOrderPageListParam;
import com.sckw.mine.entity.res.MineOrderDetailRes;
import com.sckw.mine.entity.res.MineOrderPageListRes;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * @author lt
 */
@Mapper
@DS("mine")
public interface MineOrderMapper extends BaseMapper<KwBusinessMineOrder> {

    List<MineOrderPageListRes> mineOrderPageList(@Param("param") MineOrderPageListParam param);
    MineOrderDetailRes selectOrderById(String orderId);

    List<Map<String, Object>> countByStatus(@Param("tenantId") String tenantId);

}
