small fixes
This commit is contained in:
parent
6254cb0fcc
commit
3a55a861f3
@ -1129,9 +1129,13 @@ public abstract class BaseOfficeDataImport extends CsvDataImport {
|
|||||||
|| tradeName.toLowerCase().contains("stichting")
|
|| tradeName.toLowerCase().contains("stichting")
|
||||||
|| tradeName.toLowerCase().contains("foundation")
|
|| tradeName.toLowerCase().contains("foundation")
|
||||||
|| tradeName.toLowerCase().contains("schule")
|
|| tradeName.toLowerCase().contains("schule")
|
||||||
|| tradeName.toLowerCase().contains("Landkreis")
|
|| tradeName.toLowerCase().contains("verein")
|
||||||
|| tradeName.toLowerCase().contains("Behörde")
|
|| tradeName.toLowerCase().contains("gewerkschaft")
|
||||||
|| tradeName.toLowerCase().contains("Bezirksamt")
|
|| tradeName.toLowerCase().contains("gesellschaft")
|
||||||
|
|| tradeName.toLowerCase().contains("landkreis")
|
||||||
|
|| tradeName.toLowerCase().contains("behörde")
|
||||||
|
|| tradeName.toLowerCase().contains("bundesamt")
|
||||||
|
|| tradeName.toLowerCase().contains("bezirksamt")
|
||||||
) {
|
) {
|
||||||
return HsOfficePersonType.LEGAL_PERSON; // Haftungsbeschränkt
|
return HsOfficePersonType.LEGAL_PERSON; // Haftungsbeschränkt
|
||||||
} else if (roles.contains("contractual") && !roles.contains("partner") &&
|
} else if (roles.contains("contractual") && !roles.contains("partner") &&
|
||||||
@ -1156,7 +1160,7 @@ public abstract class BaseOfficeDataImport extends CsvDataImport {
|
|||||||
private static boolean containsWord(final String value, final String... endings) {
|
private static boolean containsWord(final String value, final String... endings) {
|
||||||
final var lowerCaseValue = value.toLowerCase();
|
final var lowerCaseValue = value.toLowerCase();
|
||||||
for (String ending : endings) {
|
for (String ending : endings) {
|
||||||
if (lowerCaseValue.isEqualTo(ending.toLowerCase()) ||
|
if (lowerCaseValue.equals(ending.toLowerCase()) ||
|
||||||
lowerCaseValue.startsWith(ending.toLowerCase() + " ") ||
|
lowerCaseValue.startsWith(ending.toLowerCase() + " ") ||
|
||||||
lowerCaseValue.contains(" " + ending.toLowerCase() + " ") ||
|
lowerCaseValue.contains(" " + ending.toLowerCase() + " ") ||
|
||||||
lowerCaseValue.endsWith(" " + ending.toLowerCase())) {
|
lowerCaseValue.endsWith(" " + ending.toLowerCase())) {
|
||||||
|
Loading…
Reference in New Issue
Block a user