VehicleInfoMapper.java 1.3 KB
package com.sunyo.wlpt.dispatch.mapper;

import com.sunyo.wlpt.dispatch.domain.VehicleInfo;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author 子诚
 * Description:
 * 时间:2020/4/21 15:16
 */
@Mapper
public interface VehicleInfoMapper {


    /**
     * 调度车辆方法
     *
     * @param record
     * @return
     */
    List<VehicleInfo> dispatchVehicle(VehicleInfo record);

    /**
     * 分页查询,车辆列表
     */
    List<VehicleInfo> selectVehicleInfoList(VehicleInfo record);

    /**
     * 删除,根据主键
     *
     * @param id
     * @return
     */
    int deleteByPrimaryKey(String id);

    int insert(VehicleInfo record);

    int insertOrUpdate(VehicleInfo record);

    int insertOrUpdateSelective(VehicleInfo record);

    int insertSelective(VehicleInfo record);

    VehicleInfo selectByPrimaryKey(String id);

    /**
     * 根据车牌号查询车辆信息
     */
    VehicleInfo selectByLPN(String licensePlateNumber);

    /**
     * 选择性修改,根据主键id
     */
    int updateByPrimaryKeySelective(VehicleInfo record);

    int updateByPrimaryKey(VehicleInfo record);

    int updateBatch(List<VehicleInfo> list);

    int updateBatchSelective(List<VehicleInfo> list);

    int batchInsert(@Param("list") List<VehicleInfo> list);
}