package com.fjhx.supplier.service.impl;

import com.fjhx.entity.supplier.Supplier;
import com.fjhx.entity.supplier.SupplierPricechange;
import com.fjhx.supplier.mapper.SupplierPricechangeMapper;
import com.fjhx.supplier.service.SupplierPricechangeService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 供应商价格变更记录 服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2022-07-14
 */
@Service
public class SupplierPricechangeServiceImpl extends ServiceImpl<SupplierPricechangeMapper, SupplierPricechange> implements SupplierPricechangeService {

    /**
     * 列表--根据供应商ID
     * @param condition
     * @return
     */
    @Override
    public List<SupplierPricechange> getListBySupplierId(Map<String, Object> condition) {
        return baseMapper.getListBySupplierId(condition);
    }

    /**
     * 列表条数--根据供应商ID
     * @param condition
     * @return
     */
    @Override
    public Integer getListCountBySupplierId(Map<String, Object> condition) {
        return baseMapper.getListCountBySupplierId(condition);
    }
}
