package com.njcn.prepare.harmonic.service;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.njcn.prepare.harmonic.mapper.mysql.line.RMpFlickerReportDPOMapper;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author hongawen
 * @version 1.0.0
 * @date 2022年11月23日 15:36
 */
@RequiredArgsConstructor
@Component
public class TestDataSource {

    private final RMpFlickerReportDPOMapper rMpFlickerReportDPOMapper;

    /**
     * master默认为mysql，可以省略
     */
    @DS("master")
    public List<String> testMysql() {
        return rMpFlickerReportDPOMapper.testMysql();
    }

    /**
     * oracle
     */
    @DS("oracle")
    public List<String> testOracle() {
        return rMpFlickerReportDPOMapper.testOracle();
    }

}
