package com.maintain.business.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.maintain.business.domain.ErpCar;
import com.maintain.business.domain.vo.ErpCarVo;
import com.maintain.common.core.domain.entity.SysRole;
import com.maintain.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 客户信息-车辆Mapper接口
 *
 * @author liushuai
 * @date 2025-03-25
 */
public interface ErpCarMapper extends BaseMapperPlus<ErpCarMapper, ErpCar, ErpCarVo> {

    /**
     * 自定义分页查询
     * @param page
     * @param queryWrapper
     * @return
     */
    Page<ErpCarVo> selectPageCarList(@Param("page") Page<ErpCar> page, @Param(Constants.WRAPPER) Wrapper<ErpCar> queryWrapper);

    /**
     * 自定义查询
     * @param queryWrapper
     * @return
     */
    List<ErpCarVo> selectCarList(@Param(Constants.WRAPPER) Wrapper<ErpCar> queryWrapper);
}
