package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.mapper.So2Mapper;
import com.ruoyi.system.service.ISo2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

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

/**
 * @Description: TODO
 * @Author: huangcheng
 * @Date: 2021/8/31
 * @Version V1.0
 */
@Service
@DataSource(DataSourceType.SLAVE_SO2)
public class So2ServiceImpl implements ISo2Service {

    @Autowired
    private So2Mapper so2Mapper;

    @Override
    public List<Map<String, Object>> queryDeviceStatic() {
        return so2Mapper.queryDeviceStatic();
    }

    @Override
    public int queryDeviceCount() {
        return so2Mapper.queryDeviceCount();
    }
}
