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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.vo.dataproject.TCoreSensitiveregexVO;
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 TCoreMaskingRuleVoDao extends BaseDao<TCoreSensitiveregexVO, String> {
   public List<TCoreSensitiveregexVO> querySensitiveregexByid(String id) {
      String sql = XmlTool.getSql("maskingtask", "querySensitiveregexByid");
      List<TCoreSensitiveregexVO> list = this.getSession().createNativeQuery(sql).setParameter("id", id).setResultTransformer(Transformers.aliasToBean(TCoreSensitiveregexVO.class)).getResultList();
      return list;
   }
}
