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.masking.TCoreMaskingTable;
import com.chenyang.nse.bussiness.entity.vo.maskingtask.TCoreMaskingTablecolumnVO;
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 TCoreMaskingTableDao extends BaseDao<TCoreMaskingTable, String> {
   public List<TCoreMaskingTablecolumnVO> queryMaskingTablecolumnVO(String tableid) {
      String sql = XmlTool.getSql("maskingtask", "queryMaskingTablecolumnVO");
      List<TCoreMaskingTablecolumnVO> list = this.getSession().createNativeQuery(sql).setParameter("tableid", tableid).setResultTransformer(Transformers.aliasToBean(TCoreMaskingTablecolumnVO.class)).getResultList();
      return list;
   }
}
