package com.stylefeng.guns.modular.system.dao;
|
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import com.stylefeng.guns.modular.system.model.Driver;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
import java.util.Map;
|
|
public interface DriverMapper extends BaseMapper<Driver> {
|
|
/**
|
* 根据电话获取司机
|
* @param phone
|
* @return
|
*/
|
Driver queryByPhone(@Param("phone") String phone);
|
|
|
/**
|
* 根据账号获取司机
|
* @param account
|
* @return
|
*/
|
Driver queryAccount(@Param("account") String account);
|
|
|
/**
|
* 根据电话获取司机
|
* @param phone
|
* @return
|
*/
|
Driver queryByPhone_(@Param("phone") String phone, @Param("authState") Integer authState);
|
|
|
/**
|
* 获取司机总数
|
* @return
|
*/
|
int getCount();
|
|
|
/**
|
* 获取首页统计数据
|
* @param uid
|
* @return
|
*/
|
Map<String, Object> queryHomeData(@Param("uid") Integer uid);
|
|
|
/**
|
* 获取个人中心详情
|
* @param uid
|
* @return
|
*/
|
Map<String, Object> queryInfo(@Param("uid") Integer uid);
|
|
|
/**
|
* 工号获取司机
|
* @param jobNum
|
* @return
|
*/
|
Driver queryByJobNum(@Param("jobNum") String jobNum);
|
|
|
/**
|
* 获取上班中的司机
|
* @return
|
*/
|
List<Driver> queryWorkDriver();
|
|
|
/**
|
* 根据城市code获取是否需要网约车资格证
|
* @param code
|
* @return
|
*/
|
Integer queryNeedCertificate(@Param("code") String code);
|
|
|
List<Driver> queryByCompanyId(@Param("companyId") Integer companyId);
|
|
|
/**
|
* 身份证查询数据
|
* @param identification
|
* @return
|
*/
|
Driver queryByIdentification(@Param("identification") String identification);
|
|
|
|
/**
|
* 出租车资格证号查询数据
|
* @param taxiAptitudeCard
|
* @return
|
*/
|
Driver queryByTaxiAptitudeCard(@Param("taxiAptitudeCard") String taxiAptitudeCard);
|
|
}
|