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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.previousblob.TCorePreviousBlobTask;
import com.chenyang.nse.bussiness.entity.vo.previousblobtask.TCorePreviousBlobTaskVO;
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 TCorePreviousBlobTaskDao extends BaseDao<TCorePreviousBlobTask, String> {
   public List<TCorePreviousBlobTaskVO> queryBlobMaskingTaskVOByID(String taskid) {
      String sql = XmlTool.getSql("previousblobtask", "queryBolbMaskingTaskVOByID");
      List<TCorePreviousBlobTaskVO> list = this.getSession().createNativeQuery(sql).setParameter("taskid", taskid).setResultTransformer(Transformers.aliasToBean(TCorePreviousBlobTaskVO.class)).getResultList();
      return list;
   }
}
