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.VNcOrderDetailVo;
import com.rongwei.bsentity.domain.VNcOrderVo;
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<VNcOrderVo> getVNcOrderVo(List<String> orderNos) {
        return slaveOracleDao.getVNcOrderVo(orderNos);
    }

    @Override
    @DS("slave")
    public List<VNcOrderDetailVo> getVNcOrderDetailVo(List<String> orderNos) {
        return slaveOracleDao.getVNcOrderDetailVo(orderNos);
    }

}
