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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.file.TCoreFileStructurecolumn;
import com.chenyang.nse.bussiness.entity.orm.table.core.masking.TCoreMaskingFilecolumn;
import com.chenyang.nse.bussiness.tools.xml.XmlTool;
import java.util.List;
import org.hibernate.transform.Transformers;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreMaskingFilecolumnDao extends BaseDao<TCoreMaskingFilecolumn, String> {
   public List<TCoreFileStructurecolumn> queryStructureColumnByFSID(String filesystemid, String datadirection) {
      String sql = XmlTool.getSql("maskingtask", "queryStructureColumnByFSID");
      List<TCoreFileStructurecolumn> list = this.getSession().createNativeQuery(sql).setParameter("filesystemid", filesystemid).setParameter("datadirection", datadirection).setResultTransformer(Transformers.aliasToBean(TCoreFileStructurecolumn.class)).getResultList();
      return list;
   }
}
