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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.findCharts.Echartstwo;
import java.util.List;
import java.util.Map;
import org.hibernate.transform.Transformers;
import org.springframework.stereotype.Repository;

@Repository
public class EchartsTwoDao extends BaseDao<Echartstwo, String> {
   public List<Map<String, Object>> findNameByPieTaskid(String taskid) {
      String sql = "select nonsensitivepieNumber,sensitivepieNumber,taskpieName FROM t_core_findcharts_two WHERE taskid ='" + taskid + "'";
      List<Map<String, Object>> list = this.getSession().createNativeQuery(sql).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP).getResultList();
      return list;
   }
}
