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

import com.steerinfo.ems.trmstation.mapper.TRmStationMapper;
import com.steerinfo.ems.trmstation.model.TRmStation;
import com.steerinfo.ems.trmstation.service.ITRmStationService;
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.List;

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

    @Autowired
    private TRmStationMapper tRmStationMapper;

    @Override
    protected IBaseMapper<TRmStation, String> getMapper() {
        return tRmStationMapper;
    }

    public List<TRmStation> getNameAndId(){
        List<TRmStation> rows = tRmStationMapper.getNameAndId();
        return rows;
    }

    public Long getMaxSortSeq(){return this.tRmStationMapper.getMaxSortSeq();}
}
