package com.fdkankan.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fdkankan.order.entity.ExpansionOrder;
import com.fdkankan.order.vo.ResponseExpansionOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 扩容订单表（八目相机） Mapper 接口
 * </p>
 *
 * @author 
 * @since 2021-12-24
 */
@Mapper
public interface IExpansionOrderMapper extends BaseMapper<ExpansionOrder> {

    List<ResponseExpansionOrder> getExpansionListByParam(@Param("userId")Long userId, @Param("childName")String childName,
                                                         @Param("cameraId")Long cameraId, @Param("start")Integer start,
                                                         @Param("pageSize")Integer pageSize, @Param("orderBy")String orderBy);
    Integer getExpansionCountByParam(@Param("userId")Long userId,@Param("childName")String childName,
                                  @Param("cameraId")Long cameraId);

}
