package com.rongwei.bscommon.sys.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.rongwei.bscommon.sys.dao.SlaveOracleDao;
import com.rongwei.bscommon.sys.service.SlaveSourceService;
import com.rongwei.bsentity.domain.VInventoryVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author zhou
 */
@Service
public class SlaveSourceServiceImpl implements SlaveSourceService {

    @Autowired
    private SlaveOracleDao slaveOracleDao;

    @Override
    @DS("slave")
    public List<VInventoryVo> getAllOracleInventory() {
        return slaveOracleDao.getAllOracleInventory();
    }

}
