45 lines
1.1 KiB
Java
45 lines
1.1 KiB
Java
package com.shiyi.internet.mapper;
|
|
|
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|
import com.shiyi.internet.domain.Car;
|
|
import com.shiyi.internet.domain.DrivingRecord;
|
|
import com.shiyi.internet.domain.response.ResponseCar;
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import java.util.List;
|
|
|
|
/**
|
|
* @Description : 车辆管理数据层
|
|
* @Author : YHY
|
|
* @Date: 2023-11-19 21:25
|
|
*/
|
|
@Mapper
|
|
public interface VehicleMapper extends BaseMapper<Car> {
|
|
List<ResponseCar> vehicleList();
|
|
|
|
int deletVehiclById(@Param("carId") Integer carId);
|
|
|
|
int addVehicl(Car car);
|
|
|
|
ResponseCar findVehiclById(@Param("carId") Integer carId);
|
|
|
|
int updateVehicl(Car car);
|
|
|
|
void updateVehicleStatus(@Param("carVin") String carVin, @Param("status") Integer status);
|
|
|
|
Car getVehicleInfoByVin(@Param("vin") String vin);
|
|
|
|
void insertRecord(DrivingRecord record);
|
|
|
|
DrivingRecord selectLastByVin(@Param("carVin") String carVin);
|
|
|
|
List<String> getOnlineVehicleIds();
|
|
|
|
Integer getOnlineCount();
|
|
|
|
Integer getUnOnlineCount();
|
|
|
|
List<Car> selectVehicleInfoList(Car car);
|
|
}
|