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