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

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