package com.njzscloud.supervisory.biz.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.njzscloud.supervisory.biz.pojo.entity.BizDriverEntity;
import com.njzscloud.supervisory.biz.pojo.result.SearchCompanyResult;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * 司机信息
 */
@Mapper
public interface BizDriverMapper extends BaseMapper<BizDriverEntity> {
    @Select("SELECT id,uscc FROM biz_company WHERE user_id = #{userId}")
    SearchCompanyResult selectCompanyByUserId(@Param("userId") Long userId);

}
