package com.bs.tm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bs.tm.mapper.TmVehicleMapper;
import com.bs.tm.domain.TmVehicle;
import com.bs.tm.service.ITmVehicleService;
import com.github.yulichang.base.MPJBaseServiceImpl;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;

/**
 * 车辆信息Service业务层处理
 *
 * @author bs
 * @date 2024-02-07
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TmVehicleServiceImpl  extends MPJBaseServiceImpl<TmVehicleMapper, TmVehicle> implements ITmVehicleService {

    @Resource
    private TmVehicleMapper tmVehicleMapper;

    @Override
    public List<TmVehicle> selectTmVehicleList(QueryWrapper<TmVehicle> wrapper) {
        return tmVehicleMapper.selectTmVehicleList(wrapper);
    }

    @Override
    public TmVehicle selectTmVehicleById(Long id) {
        return tmVehicleMapper.selectTmVehicleById(id);
    }
}
