/*
  * 查询权限名称是否存在
  */
 public boolean boolPermissionName(PmPermission pmPermission) throws Exception {
   try {
     String hql = "from PmPermission where permissionName=?";
     Object[] obj = new Object[1];
     obj[0] = pmPermission.getPermissionName();
     List list = this.query(hql, obj);
     if (list != null && list.size() > 0) {
       return false;
     }
   } catch (Exception e) {
     throw e;
   }
   return true;
 }