Browse Source

Merge branch 'master' of bn.git:plabudda/se

Piotr Labudda 8 năm trước cách đây
mục cha
commit
2e7fefe965
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      SE/se-lib/Route/UrlAction/BiAuditGenerate.php

+ 3 - 3
SE/se-lib/Route/UrlAction/BiAuditGenerate.php

@@ -1865,8 +1865,8 @@ SQL;
 		$queries[] = "update `BI_audit_ALL` set `regon` = null where `regon` = 0";
 		$queries[] = "update `BI_audit_ALL` set `krs` = null where `krs` = 0";
 		$queries[] = "update `BI_audit_ALL` set `pesel` = null where `pesel` = 0";
-		$queries[] = "update `BI_audit_ALL` set `TERYT_SYM` = null where `TERYT_SYM` = 0";
-		$queries[] = "update `BI_audit_ALL` set `TERYT_SYM_UL` = null where `TERYT_SYM_UL` = 0";
+		//$queries[] = "update `BI_audit_ALL` set `TERYT_SYM` = null where `TERYT_SYM` = 0";
+		//$queries[] = "update `BI_audit_ALL` set `TERYT_SYM_UL` = null where `TERYT_SYM_UL` = 0";
 		$queries[] = "update `BI_audit_ALL` set `nrDomu` = null where trim(`nrDomu`) = ''";
 		$queries[] = "update `BI_audit_ALL` set `nrLokalu` = null where trim(`nrLokalu`) = ''";
 
@@ -2087,7 +2087,7 @@ class BiAuditRelations {
 			$join = [];
 			foreach ($columns as $column) {
 				$join[] = "t1.{$column} = t2.{$column}";
-				if ($row[$column]) $ok++;
+				if ($row[$column] !== null) $ok++;
 			}
 			if ($ok / count($columns) > 0.5) {
 				$joins[] = "(" . implode(" and ", $join) . ")";