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