master
wangning 7 years ago
parent d05cea8b1c
commit 48e76b7d33

@ -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);

Loading…
Cancel
Save