|
|
@ -241,23 +241,23 @@ public class PartymemberBaseInfoServiceImpl extends BaseServiceImpl<PartymemberB |
|
|
|
double idCardResult = jw.similarity(baseInfo.getIdCard(), info.getIdCard()); |
|
|
|
double mobileResult = jw.similarity(baseInfo.getMobile(), info.getMobile()); |
|
|
|
double nameResult = jw.similarity(baseInfo.getName(), info.getSurname() + info.getName()); |
|
|
|
result = getString(result, idCardResult); |
|
|
|
result = getString(result, idCardResult, PartyMemberConstant.ID_MOST, PartyMemberConstant.ID_SMALL); |
|
|
|
|
|
|
|
result = getString(result, mobileResult); |
|
|
|
result = getString(result, mobileResult, PartyMemberConstant.MOBILE_MOST, PartyMemberConstant.MOBILE_SMALL); |
|
|
|
|
|
|
|
result = getString(result, nameResult); |
|
|
|
result = getString(result, nameResult, PartyMemberConstant.NAME_MOST, PartyMemberConstant.NAME_SMALL); |
|
|
|
|
|
|
|
return result; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
@NotNull |
|
|
|
private String getString(String result, double comparisonResult) { |
|
|
|
private String getString(String result, double comparisonResult, double most, double small) { |
|
|
|
if (comparisonResult == PartyMemberConstant.EQUALS) { |
|
|
|
result = result + "11"; |
|
|
|
} else if (comparisonResult > PartyMemberConstant.MOST) { |
|
|
|
} else if (comparisonResult > most) { |
|
|
|
result = result + "10"; |
|
|
|
} else if (comparisonResult < PartyMemberConstant.SMALL) { |
|
|
|
} else if (comparisonResult < small) { |
|
|
|
result = result + "00"; |
|
|
|
} else { |
|
|
|
result = result + "01"; |
|
|
|