package com.njzscloud.dispose.cst.driver.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.njzscloud.dispose.cst.driver.pojo.entity.DriverEntity;
import com.njzscloud.dispose.cst.driver.pojo.result.DriverResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 司机
 *
 * @author ljw
 */
@Mapper
public interface DriverMapper extends BaseMapper<DriverEntity> {

    Page<DriverResult> paging(Page<DriverEntity> page, @Param("ew") QueryWrapper<DriverEntity> ew);

    DriverResult getById(Long id);

    DriverResult getByUserId(Long userId);

}
