| | |
| | | package com.ruoyi.system.mapper; |
| | | |
| | | import java.util.List; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import com.ruoyi.system.domain.VehicleInfo; |
| | | |
| | | /** |
| | |
| | | * @return 结果 |
| | | */ |
| | | public int deleteVehicleInfoByIds(Long[] vehicleIds); |
| | | |
| | | /** |
| | | * 绑定车辆到用户 |
| | | * |
| | | * @param userId 用户ID |
| | | * @param vehicleId 车辆ID |
| | | * @param bindBy 绑定操作人 |
| | | * @return 结果 |
| | | */ |
| | | public int bindVehicleToUser(@Param("userId") Long userId, @Param("vehicleId") Long vehicleId, @Param("bindBy") String bindBy); |
| | | |
| | | /** |
| | | * 解绑用户车辆 |
| | | * |
| | | * @param userId 用户ID |
| | | * @param vehicleId 车辆ID |
| | | * @return 结果 |
| | | */ |
| | | public int unbindVehicleFromUser(@Param("userId") Long userId, @Param("vehicleId") Long vehicleId); |
| | | |
| | | /** |
| | | * 解绑用户的所有车辆 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 结果 |
| | | */ |
| | | public int unbindAllVehiclesFromUser(@Param("userId") Long userId); |
| | | |
| | | /** |
| | | * 获取用户当前绑定的车辆 |
| | | * |
| | | * @param userId 用户ID |
| | | * @return 车辆信息 |
| | | */ |
| | | public VehicleInfo getUserBoundVehicle(@Param("userId") Long userId); |
| | | } |