package com.bs.tm.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.bs.tm.domain.TmCargoSource;
import com.bs.tm.mapper.TmCargoSourceMapper;
import com.bs.tm.service.ITmCargoSourceService;
import com.github.yulichang.base.MPJBaseServiceImpl;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * 货源信息Service业务层处理
 *
 * @author bs
 * @date 2024-02-07
 */
@Service
@Transactional(rollbackFor = Exception.class)
public class TmCargoSourceServiceImpl  extends MPJBaseServiceImpl<TmCargoSourceMapper, TmCargoSource> implements ITmCargoSourceService {

    @Override
    public List<TmCargoSource> selectOrderList(@Param("ew")QueryWrapper<TmCargoSource> wrapper) {
        return baseMapper.selectOrderList(wrapper);
    }

    @Override
    public TmCargoSource selectOrderById(Long id) {
        return baseMapper.selectOrderById(id);
    }
}
