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

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

@Repository
public class DesensitizationImgtaskDao extends BaseDao<DesensitizationImgtask, String> {
   public List<Map<String, Object>> selectImgTaskCount(String id) {
      String sql = "SELECT COUNT(id) AS s FROM desensitizationimgtask WHERE projectid = '" + id + "'";
      List<Map<String, Object>> vo = this.getSession().createNativeQuery(sql).setResultTransformer(Transformers.ALIAS_TO_ENTITY_MAP).getResultList();
      return vo;
   }
}
