package com.bs.tm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bs.tm.domain.TmDriver;
import com.bs.tm.mapper.TmDriverMapper;
import com.bs.tm.service.ITmDriverService;
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 TmDriverServiceImpl  extends MPJBaseServiceImpl<TmDriverMapper, TmDriver> implements ITmDriverService {

    @Resource
    private TmDriverMapper tmDriverMapper;

    @Override
    public List<TmDriver> selectDriverList(QueryWrapper<TmDriver> wrapper) {
        return tmDriverMapper.selectDriverList(wrapper);
    }

    @Override
    public TmDriver selectDriverById(Long id) {
        return tmDriverMapper.selectDriverById(id);
    }
}
