package com.fdkankan.platform.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fdkankan.platform.order.entity.VirtualOrder;
import com.fdkankan.platform.user.vo.ResponseVirtualOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 充值订单表（双目相机点数充值、消费） Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-12-27
 */
@Mapper
public interface IVirtualOrderMapper extends BaseMapper<VirtualOrder> {

    List<ResponseVirtualOrder> getChargeListByParam(@Param("userId")Long userId, @Param("status")String status, @Param("childName")String childName,
                                                    @Param("cameraId")Long cameraId, @Param("start")Integer start,
                                                    @Param("pageSize")Integer pageSize, @Param("orderBy")String orderBy);
    Integer getChargeCountByParam(@Param("userId")Long userId,@Param("status")String status,@Param("childName")String childName,
                                                    @Param("cameraId")Long cameraId);
}
