package com.jisco.dynamicweight.dynamicbasemeterial.service.impl;

import com.jisco.dynamicweight.dynamicbasemeterial.mapper.DynamicBaseMeterialMapper;
import com.jisco.dynamicweight.dynamicbasemeterial.model.DynamicBaseMeterial;
import com.jisco.dynamicweight.dynamicbasemeterial.service.IDynamicBaseMeterialService;
import com.steerinfo.baseinfo.meterbasecalibrarelation.model.MeterBaseCalibraRelation;
import com.steerinfo.framework.mapper.IBaseMapper;
import com.steerinfo.framework.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;

/**
 * DynamicBaseMeterial服务实现：
 * @author generator
 * @version 1.0-SNAPSHORT 2022-01-19 04:34
 * 类描述
 * 修订历史：
 * 日期：2022-01-19
 * 作者：generator
 * 参考：
 * 描述：DynamicBaseMeterial服务实现
 * @see null
 * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
 */
@Service(value = "dynamicBaseMeterialService")
public class DynamicBaseMeterialServiceImpl extends BaseServiceImpl<DynamicBaseMeterial, String> implements IDynamicBaseMeterialService {

    @Autowired
    private DynamicBaseMeterialMapper dynamicBaseMeterialMapper;

    @Override
    protected IBaseMapper<DynamicBaseMeterial, String> getMapper() {
        return dynamicBaseMeterialMapper;
    }

    @Override
    public List<MeterBaseCalibraRelation> queryall(HashMap parmas) {
        return dynamicBaseMeterialMapper.selectByParameters(parmas);
    }
}
