package com.ruoyi.system.service.impl;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import com.ruoyi.system.mapper.AisDatabaseMapper;
import com.ruoyi.system.mapper.HeiYanMapper;
import com.ruoyi.system.service.IAisDatabase;
import com.ruoyi.system.service.IHeiYanService;
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_BLACK)
public class HeiYanServiceImpl implements IHeiYanService {

    @Autowired
    private HeiYanMapper heiYanMapper;

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

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