master
wangning 7 years ago
parent 87e1d6eb18
commit 8bbba61d9d

@ -802,9 +802,9 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
try { try {
String emailId = mailService.sendEmail("Your RoyalPay Cross-border Payment has been set up", mailTo, String emailId = mailService.sendEmail("Your RoyalPay Cross-border Payment has been set up", mailTo,
emails.isEmpty() ? "" : StringUtils.join(emails, ","), content); emails.isEmpty() ? "" : StringUtils.join(emails, ","), content);
clientModifySupport.processClientConfigModify(new EmailModify(account, client.getString("client_moniker"), 3, emailId)); clientModifySupport.processClientModify(new EmailModify(account, client.getString("client_moniker"), 3, emailId));
} catch (Exception e) { } catch (Exception e) {
clientModifySupport.processClientConfigModify(new EmailModify(account, client.getString("client_moniker"), 0, null)); clientModifySupport.processClientModify(new EmailModify(account, client.getString("client_moniker"), 0, null));
throw new EmailException("Email Sending Failed", e); throw new EmailException("Email Sending Failed", e);
} }
} }

@ -39,11 +39,11 @@ public abstract class ClientConfigModify {
public int doModify(MerchantInfoProvider merchantInfoProvider, ClientConfigMapper clientConfigMapper, ClientMapper clientMapper, MongoTemplate mongoTemplate) { public int doModify(MerchantInfoProvider merchantInfoProvider, ClientConfigMapper clientConfigMapper, ClientMapper clientMapper, MongoTemplate mongoTemplate) {
JSONObject client = merchantInfoProvider.getClientInfoByMoniker(clientMoniker); JSONObject client = merchantInfoProvider.getClientInfoByMoniker(clientMoniker);
JSONObject modifyResult = getModifyResult(); JSONObject modifyResult = getModifyResult();
// try { try {
// saveModifyHistory(client, modifyResult, mongoTemplate); saveModifyHistory(client, modifyResult, mongoTemplate);
// }catch (Exception e){ }catch (Exception e){
//
// } }
int clientId = client.getIntValue("client_id"); int clientId = client.getIntValue("client_id");
modifyResult.put("client_id", clientId); modifyResult.put("client_id", clientId);
clientConfigMapper.update(modifyResult); clientConfigMapper.update(modifyResult);

@ -38,11 +38,11 @@ public abstract class ClientModify {
public int doModify(MerchantInfoProvider merchantInfoProvider, ClientMapper clientMapper, MongoTemplate mongoTemplate) { public int doModify(MerchantInfoProvider merchantInfoProvider, ClientMapper clientMapper, MongoTemplate mongoTemplate) {
JSONObject client = merchantInfoProvider.getClientInfoByMoniker(clientMoniker); JSONObject client = merchantInfoProvider.getClientInfoByMoniker(clientMoniker);
JSONObject modifyResult = getModifyResult(); JSONObject modifyResult = getModifyResult();
// try { try {
// saveModifyHistory(client, modifyResult, mongoTemplate); saveModifyHistory(client, modifyResult, mongoTemplate);
// }catch (Exception e){ }catch (Exception e){
//
// } }
int clientId = client.getIntValue("client_id"); int clientId = client.getIntValue("client_id");
modifyResult.put("client_id", clientId); modifyResult.put("client_id", clientId);
clientMapper.update(modifyResult); clientMapper.update(modifyResult);

@ -1,13 +1,13 @@
package au.com.royalpay.payment.manage.merchants.entity.impls; package au.com.royalpay.payment.manage.merchants.entity.impls;
import au.com.royalpay.payment.manage.merchants.entity.ClientConfigModify; import au.com.royalpay.payment.manage.merchants.entity.ClientModify;
import com.alibaba.fastjson.JSONObject; import com.alibaba.fastjson.JSONObject;
/** /**
* Create by yixian at 2018-04-12 16:43 * Create by yixian at 2018-04-12 16:43
*/ */
public class EmailModify extends ClientConfigModify { public class EmailModify extends ClientModify {
private int approve_email_send; private int approve_email_send;
private String approve_email_id; private String approve_email_id;
@ -25,8 +25,8 @@ public class EmailModify extends ClientConfigModify {
@Override @Override
protected JSONObject getModifyResult() { protected JSONObject getModifyResult() {
JSONObject modify = new JSONObject(); JSONObject modify = new JSONObject();
modify.put("approve_email_send", 4); modify.put("approve_email_send", approve_email_send);
modify.put("approve_email_id", null); modify.put("approve_email_id", approve_email_id);
return modify; return modify;
} }
} }

@ -22,7 +22,7 @@ spring.redis.host=127.0.0.1
spring.redis.port=6379 spring.redis.port=6379
spring.redis.database=1 spring.redis.database=1
spring.data.mongodb.host=119.28.215.173 spring.data.mongodb.host=10.30.0.8
spring.data.mongodb.port=27017 spring.data.mongodb.port=27017
spring.data.mongodb.database=admin spring.data.mongodb.database=admin
spring.data.mongodb.username=mongouser spring.data.mongodb.username=mongouser

Loading…
Cancel
Save