package com.hzs.sale.postage.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzs.common.domain.sale.postage.BdPostageDetail;
import com.hzs.sale.postage.mapper.BdPostageDetailMapper;
import com.hzs.sale.postage.service.IBdPostageDetailService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 邮费详情设置 服务实现类
 * </p>
 *
 * @author hzs
 * @since 2022-08-29
 */
@Service
public class BdPostageDetailServiceImpl extends ServiceImpl<BdPostageDetailMapper, BdPostageDetail> implements IBdPostageDetailService {

    @Override
    public List<BdPostageDetail> getPostageDetail(Integer tranType, Integer pkPostage) {
        return baseMapper.queryPostageDetail(tranType, pkPostage);
    }

    @Override
    public List<BdPostageDetail> queryPostageDetail(Integer tranType) {
        return baseMapper.queryPostageDetail(tranType, null);
    }
}
