Skip to content
Snippets Groups Projects
Commit 16a5cb59 authored by David Büchler's avatar David Büchler
Browse files

Serverprozess um Organisationscachedublettenberechnung erweitert

parent 5fdad2a8
No related branches found
No related tags found
No related merge requests found
import("DuplicateScanner_lib");
// Build Organisation duplicate cache
var filterName = "PersonDuplicates";
var targetEntity = "Person_entity";
var resultFieldsIdFieldName = "CONTACTID";
......@@ -14,4 +17,20 @@ tmpFieldsInFilterRay, resultFieldsIdFieldName);
DuplicateScannerUtils.RefreshUnrelatedDuplicateRelations(targetEntity);
//todo Refresh der Organisation duplicates
\ No newline at end of file
// Build Organisation duplicate cache
filterName = "OrganisationDuplicates";
targetEntity = "Organisation_entity";
resultFieldsIdFieldName = "CONTACTID";
queryPersonContactIds = "select CONTACTID, ORGANISATION.\"NAME\" from ORGANISATION"
+ " join CONTACT on CONTACT.CONTACTID = ORGANISATION.ORGANISATIONID"
+ " where CONTACTID != '0'";
tmpFieldsInFilterRay = ["CONTACTID", "NAME"];
DuplicateScannerUtils.DeleteDuplicateClustersByTargetEntity(targetEntity)
DuplicateScannerUtils.RebuildDuplicatesCache(filterName, targetEntity, queryPersonContactIds,
tmpFieldsInFilterRay, resultFieldsIdFieldName);
DuplicateScannerUtils.RefreshUnrelatedDuplicateRelations(targetEntity);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment