package com.cftech.waybill.service.impl;

import com.cftech.waybill.model.Waybill;
import com.cftech.waybill.dao.WaybillMapper;
import com.cftech.waybill.service.WaybillService;
import com.cftech.core.generic.GenericDao;
import com.cftech.core.generic.GenericServiceImpl;
import com.cftech.core.sql.Conds;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

/**
 * 顺丰物流运单ServiceImpl
 *
 * @author Strive
 * @date: 2020-10-21 15:04
 */
@Service("waybillService")
public class WaybillServiceImpl extends GenericServiceImpl<Waybill> implements WaybillService {

    @Autowired
    @Qualifier("waybillMapper")
    private WaybillMapper waybillMapper;

    @Override
    public GenericDao<Waybill> getGenericMapper() {
        return waybillMapper;
    }

    @Override
    public Waybill fetchByWayBillId(String id) {
        return waybillMapper.fetchByWayBillId(id);
    }
}