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.vo.VDeptVo;
import com.rongwei.bsentity.vo.VPsndocVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class SlaveSourceServiceImpl implements SlaveSourceService {

    @Autowired
    private SlaveOracleDao slaveOracleDao;

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

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

}
