|
|
|
@ -369,31 +369,35 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
if (manager != null) {
|
|
|
|
|
checkClientOrg(manager, client);
|
|
|
|
|
}
|
|
|
|
|
String same_phone = clientMapper.findSamePhone(client.getString("contact_phone")).getString("a");
|
|
|
|
|
if (same_phone != null && client.getString("contact_phone") != null && same_phone.contains(" ")) {
|
|
|
|
|
same_phone = same_phone.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_phone", "(雷同商户:" + same_phone + ")");
|
|
|
|
|
}
|
|
|
|
|
// 雷同信息检查
|
|
|
|
|
try {
|
|
|
|
|
String same_phone = clientMapper.findSamePhone(client.getString("contact_phone")).getString("a");
|
|
|
|
|
if (same_phone != null && client.getString("contact_phone") != null && same_phone.contains(" ")) {
|
|
|
|
|
same_phone = same_phone.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_phone", "(雷同商户:" + same_phone + ")");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String same_company_name = clientMapper.findSameCompanyName(client.getString("company_name")).getString("a");
|
|
|
|
|
if (same_company_name != null && client.getString("company_name") != null && same_company_name.contains(" ")) {
|
|
|
|
|
same_company_name = same_company_name.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_company_name", "(雷同商户:" + same_company_name + ")");
|
|
|
|
|
}
|
|
|
|
|
String same_company_name = clientMapper.findSameCompanyName(client.getString("company_name")).getString("a");
|
|
|
|
|
if (same_company_name != null && client.getString("company_name") != null && same_company_name.contains(" ")) {
|
|
|
|
|
same_company_name = same_company_name.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_company_name", "(雷同商户:" + same_company_name + ")");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String same_email = clientMapper.findSameEmail(client.getString("contact_email")).getString("a");
|
|
|
|
|
if (same_email != null && client.getString("contact_email") != null && same_email.contains(" ")) {
|
|
|
|
|
same_email = same_email.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_email", "(雷同商户:" + same_email + ")");
|
|
|
|
|
}
|
|
|
|
|
String same_email = clientMapper.findSameEmail(client.getString("contact_email")).getString("a");
|
|
|
|
|
if (same_email != null && client.getString("contact_email") != null && same_email.contains(" ")) {
|
|
|
|
|
same_email = same_email.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_email", "(雷同商户:" + same_email + ")");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String same_address = clientMapper.findSameAddress(client.getString("address")).getString("a");
|
|
|
|
|
if (same_address != null && client.getString("address") != null && same_address.contains(" ")) {
|
|
|
|
|
same_address = same_address.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_address", "(雷同商户:" + same_address + ")");
|
|
|
|
|
String same_address = clientMapper.findSameAddress(client.getString("address")).getString("a");
|
|
|
|
|
if (same_address != null && client.getString("address") != null && same_address.contains(" ")) {
|
|
|
|
|
same_address = same_address.replace(client.getString("client_moniker"), "");
|
|
|
|
|
client.put("same_address", "(雷同商户:" + same_address + ")");
|
|
|
|
|
}
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
// donothing
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
client.putAll(clientConfigService.find(client.getIntValue("client_id")));
|
|
|
|
|
client.put("unsubscribe", mailUnsubMapper.findOneByClientMoniker(clientMoniker) == null ? false : true);
|
|
|
|
|
client.put("show_all_permission", true);
|
|
|
|
|