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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.masking.TCoreMaskingTaskrecord;
import com.chenyang.nse.bussiness.entity.vo.maskingtask.TaskRecordVO;
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 TCoreMaskingTaskrecordDao extends BaseDao<TCoreMaskingTaskrecord, String> {
   public List<TaskRecordVO> getTaskRecord(String taskid) {
      String sql = XmlTool.getSql("taskrecord", "getTaskrecord");
      return this.getSession().createNativeQuery(sql).setParameter("taskid", taskid).setResultTransformer(Transformers.aliasToBean(TaskRecordVO.class)).getResultList();
   }
}
