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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.scheduler.TCoreSchedulerRelation;
import com.chenyang.nse.bussiness.tools.xml.XmlTool;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreSchedulerRelationDao extends BaseDao<TCoreSchedulerRelation, String> {
   public List<String> querySchedulerRelationByRuleid(String ruleid) {
      String sql = XmlTool.getSql("scheduler", "querySchedulerRelationByRuleid");
      return this.getSession().createNativeQuery(sql).setParameter("ruleid", ruleid).getResultList();
   }
}
