package com.chenyang.nse.bussiness.service.core.impl;

import com.chenyang.nse.bussiness.dao.table.core.differentdb.DifferetdbFieldMappingDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.differentdb.DifferetdbFieldMapping;
import com.chenyang.nse.bussiness.service.core.DifferetdbFieldMappingService;
import java.util.List;
import org.hibernate.criterion.Criterion;
import org.hibernate.criterion.Restrictions;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DifferetdbFieldMappingServiceImpl implements DifferetdbFieldMappingService {
   @Autowired
   private DifferetdbFieldMappingDao differetdbFieldMappingDao;

   public List<DifferetdbFieldMapping> selectDifferetdbFieldMapping(String dbid) {
      List<DifferetdbFieldMapping> queryAll = this.differetdbFieldMappingDao.queryAll(new Criterion[]{Restrictions.eq("dbid", dbid)});
      return queryAll;
   }
}
