package com.chenyang.nse.bussiness.dao.table.core.maskingself;

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.maskingself.TCoreMaskingselfTask;
import com.chenyang.nse.bussiness.tools.xml.XmlTool;
import java.util.List;
import java.util.Map;
import org.hibernate.transform.Transformers;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreMaskingselfTaskDao extends BaseDao<TCoreMaskingselfTask, String> {
   public List<Map<String, String>> queryMultiDBSourceMapping(String taskid, String tablename) {
      String sql = XmlTool.getSql("maskingselftask", "queryMultiDBSourceMapping");
      List<Map<String, String>> list = this.getSession().createNativeQuery(sql).setParameter("taskid", taskid).setParameter("tablename", tablename).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP).getResultList();
      return list;
   }
}
