a.binder 8 年之前
父节点
当前提交
30beb77d4e
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      SE/se-lib/Route/WfsBiAudit.php

+ 6 - 1
SE/se-lib/Route/WfsBiAudit.php

@@ -142,7 +142,12 @@ public function objectStructView($item) {
 			$gml = $this->addChild($wfs, 'gml:featureMember');
 			$gml = $this->addChild($wfs, 'gml:featureMember');
 
 
 			$query = "select `ID` from `BI_audit_ALL` where `REMOTE_TABLE` = " . DB::getPDO()->quote($table) . " and `REMOTE_ID` = {$primaryKey}";
 			$query = "select `ID` from `BI_audit_ALL` where `REMOTE_TABLE` = " . DB::getPDO()->quote($table) . " and `REMOTE_ID` = {$primaryKey}";
-			if (!($ID = DB::getPDO()->fetchValue($query))) self::throwServiceException("Błąd danych");
+			if (!($ID = DB::getPDO()->fetchValue($query))) 
+				
+				objectStructureAction('default_db/BI_audit_CEIDG_pelnomocnicy/BI_audit_CEIDG_pelnomocnicy');
+
+				//self::throwServiceException("Błąd danych");
+				
 			$this->findRelations($gml, $ID, $resolveDepth);
 			$this->findRelations($gml, $ID, $resolveDepth);
 
 
 			foreach ($this->tablesUsed as $table) $this->addAttribute($wfs, "xmlns:default_db__x3A__{$table}", "https://biuro.biall-net.pl/wfs/default_db/{$table}");
 			foreach ($this->tablesUsed as $table) $this->addAttribute($wfs, "xmlns:default_db__x3A__{$table}", "https://biuro.biall-net.pl/wfs/default_db/{$table}");