New file |
| | |
| | | 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); |
| | | } |