package com.kym.mapper.miniapp;

import com.kym.entity.admin.queryParams.CustomChargeOrdersQueryParam;
import com.kym.entity.admin.queryParams.StatQueryParam;
import com.kym.entity.admin.vo.CustomOrderVo;
import com.kym.entity.admin.vo.StationStatVo;
import com.kym.entity.miniapp.ChargeOrder;
import com.kym.mapper.mybatisplus.MyBaseMapper;
import org.apache.ibatis.annotations.Param;

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

/**
 * <p>
 * 充电订单表 Mapper 接口
 * </p>
 *
 * @author skyline
 * @since 2023-08-08
 */
public interface ChargeOrderMapper extends MyBaseMapper<ChargeOrder> {

    List<CustomOrderVo> listChargeOrders(@Param("params") CustomChargeOrdersQueryParam params);

    Map<String, Object> statChargeOrders(@Param("params") CustomChargeOrdersQueryParam params);

    List<StationStatVo> stationStat(@Param("params") StatQueryParam params);

    Map<String, Object> stationTodayStat(@Param("stationId") String stationId);

}
