liujie
2023-07-26 57a7c48cc4c81f7e9719c414e4abae942c93a21b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
package com.dsh.course.mapper;
 
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dsh.course.entity.Car;
import com.dsh.course.model.dto.CarServerRes;
import com.dsh.course.model.vo.BaseWarpper;
import com.dsh.course.model.vo.CarInfoRes;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
 
public interface CarMapper extends BaseMapper<Car> {
 
 
    /**
     * 获取空闲车辆
     * @param companyId
     * @return
     * @throws Exception
     */
    List<BaseWarpper> queryIdleData(@Param("companyId") Integer companyId) throws Exception;
 
 
    /**
     * 车牌查询
     * @param licensePlate
     * @return
     * @throws Exception
     */
    Car query(@Param("licensePlate") String licensePlate) throws Exception;
 
 
    /**
     * 根据id获取车辆详情
     * @param id
     * @return
     */
    CarInfoRes queryCarById(@Param("id") Integer id);
 
    CarServerRes getCarServer(@Param("carId") String carId);
}