package com.steerinfo.ems.trmfactory.service.impl;

import com.steerinfo.ems.trmfactory.mapper.TRmFactoryMapper;
import com.steerinfo.ems.trmfactory.model.TRmFactory;
import com.steerinfo.ems.trmfactory.service.ITRmFactoryService;
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.Set;

/**
 * TRmFactory服务实现：
 * @author 王金涛
 * @version 1.0-SNAPSHORT 2019-10-11
 * 类描述
 * 修订历史：
 * 日期：2019-10-11
 * 作者：王金涛
 * 参考：
 * 描述：TRmFactory服务实现
 * @see null
 * @Copyright 湖南视拓信息技术股份有限公司. All rights reserved.
 */
@Service(value = "tRmFactoryService")
public class TRmFactoryServiceImpl extends BaseServiceImpl<TRmFactory, String> implements ITRmFactoryService {

    @Autowired
    private TRmFactoryMapper tRmFactoryMapper;

    @Override
    protected IBaseMapper<TRmFactory, String> getMapper() {
        return tRmFactoryMapper;
    }

    @Override
    public Set<TRmFactory> getIdAndName() {
        return tRmFactoryMapper.getIdAndName();
    }

    @Override
    synchronized public Long getMaxSeqno(){return tRmFactoryMapper.getMaxSeqno();}
}
