package com.stylefeng.guns.modular.system.dao;
|
|
import com.baomidou.mybatisplus.plugins.Page;
|
import com.stylefeng.guns.modular.system.controller.resp.DriverDispatchInfoResp;
|
import com.stylefeng.guns.modular.system.model.TDriver;
|
import com.baomidou.mybatisplus.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.List;
|
|
/**
|
* <p>
|
* 司机基础信息 Mapper 接口
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2023-02-20
|
*/
|
@Mapper
|
public interface TDriverMapper extends BaseMapper<TDriver> {
|
|
List<TDriver> queryIdleDriver(@Param("type") Integer type, @Param("companyId") Integer companyId);
|
|
/**
|
* 查询有车检服务权限的司机列表(分页)
|
*
|
* @param checkServer 车检服务权限(1=有权限)
|
* @param excludeDriverId 排除的司机ID(改派时使用)
|
* @param approvalStatus 审核状态(2=已同意)
|
* @param status 司机状态(1=正常)
|
* @param offset 分页偏移量
|
* @param limit 分页大小
|
* @return 司机派单信息列表
|
*/
|
List<DriverDispatchInfoResp> queryCheckServiceDrivers(
|
@Param("checkServer") Integer checkServer,
|
@Param("excludeDriverId") Integer excludeDriverId,
|
@Param("approvalStatus") Integer approvalStatus,
|
@Param("status") Integer status,
|
@Param("offset") Integer offset,
|
@Param("limit") Integer limit
|
);
|
|
/**
|
* 查询有车检服务权限的司机列表(支持搜索)
|
*
|
* @param checkServer 车检服务权限(1=有权限)
|
* @param excludeDriverId 排除的司机ID(改派时使用)
|
* @param approvalStatus 审核状态(2=已同意)
|
* @param status 司机状态(1=正常)
|
* @param keyword 司机姓名/手机号(搜索条件)
|
* @param branchOfficeId
|
* @return 司机派单信息列表
|
*/
|
List<DriverDispatchInfoResp> queryCheckServiceDriversWithSearch(Page<DriverDispatchInfoResp> page,
|
@Param("checkServer") Integer checkServer,
|
@Param("excludeDriverId") Integer excludeDriverId,
|
@Param("approvalStatus") Integer approvalStatus,
|
@Param("status") Integer status,
|
@Param("keyword") String keyword,
|
@Param("branchOfficeId") Integer branchOfficeId);
|
|
/**
|
* 统计有车检服务权限的司机总数(支持搜索)
|
*
|
* @param checkServer 车检服务权限(1=有权限)
|
* @param excludeDriverId 排除的司机ID(改派时使用)
|
* @param approvalStatus 审核状态(2=已同意)
|
* @param status 司机状态(1=正常)
|
* @param keyword 司机姓名、司机手机号(搜索条件)
|
* @return 总数
|
*/
|
Long countCheckServiceDriversWithSearch(
|
@Param("checkServer") Integer checkServer,
|
@Param("excludeDriverId") Integer excludeDriverId,
|
@Param("approvalStatus") Integer approvalStatus,
|
@Param("status") Integer status,
|
@Param("keyword") String keyword
|
);
|
}
|