|
|
|
@ -630,7 +630,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
clientMapper.update(updateInfo);
|
|
|
|
|
if (!client.getString("contact_email").equals(updateInfo.getString("contact_email"))) {
|
|
|
|
|
mailGunService.updateClientOfMailList(updateInfo, client);
|
|
|
|
|
JSONObject sameMailClients = getByEmail(client.getString("contact_email"),1,1);
|
|
|
|
|
if(sameMailClients.getJSONObject("data").size()<1) {
|
|
|
|
|
mailGunService.updateClientOfMailList(updateInfo, client);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
clientInfoCacheSupport.clearClientCache(clientId);
|
|
|
|
|
}
|
|
|
|
@ -668,7 +671,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
clientMapper.update(info);
|
|
|
|
|
if (!client.getString("contact_email").equals(info.getString("contact_email"))) {
|
|
|
|
|
mailGunService.updateClientOfMailList(info, client);
|
|
|
|
|
JSONObject sameMailClients = getByEmail(client.getString("contact_email"),1,1);
|
|
|
|
|
if(sameMailClients.getJSONObject("data").size()<1) {
|
|
|
|
|
mailGunService.updateClientOfMailList(info, client);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
clientInfoCacheSupport.clearClientCache(clientId);
|
|
|
|
|
}
|
|
|
|
|