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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.dataproject.TCoreProjectVersion;
import java.util.List;
import org.springframework.stereotype.Repository;

@Repository
public class TCoreProjectVersionDao extends BaseDao<TCoreProjectVersion, String> {
   public List<TCoreProjectVersion> queryAllPro(String taskid, String projectid) {
      String sql = "select * from T_CORE_PROJECT_VERSION where taskid='" + taskid + "' and projectid='" + projectid + "' order by type+0";
      return this.getSession().createNativeQuery(sql, TCoreProjectVersion.class).getResultList();
   }
}
