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

import com.chenyang.nse.bussiness.dao.BaseDao;
import com.chenyang.nse.bussiness.entity.orm.table.core.ImportMaskingExecute;
import java.math.BigInteger;
import org.springframework.stereotype.Repository;

@Repository
public class ImportMaskingExecuteDao extends BaseDao<ImportMaskingExecute, String> {
   public long getExeTaskNum() {
      String sql = "select  count(*) from desensitization_table as a,desensitizationtask as b  where a.taskid = b.id and taskstatus = 1";
      BigInteger count = (BigInteger)this.getSession().createNativeQuery(sql).uniqueResult();
      return count.longValue();
   }
}
