fix app修改商户信息可能会导致client_pay_type异常

master
luoyang 5 years ago
parent f4f68c0d79
commit 7848f11eb7

@ -138,6 +138,10 @@ public class ManageAppServiceImp implements ManageAppService {
String clientType = device.getString("client_type");
manageDeviceSupport.findRegister(clientType);
JSONObject manager = managerMapper.findById(device.getString("manager_id"));
if (StringUtils.isNotBlank(info.getClient_pay_type())&& StringUtils.isNotBlank(info.getClient_pay_desc())) {
info.setClient_pay_type("");
info.setClient_pay_desc("");
}
clientManager.updateClientRegisterInfo(manager, clientMoniker, info);
}

@ -415,8 +415,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
}
//商户支付场景
if (StringUtils.isNotBlank(client.getString("client_pay_type"))) {
client.put("client_pay_type", client.getString("client_pay_type").split(","));
client.put("client_pay_desc", client.getString("client_pay_desc").split(","));
client.put("client_pay_type",client.getString("client_pay_type").split(","));
client.put("client_pay_desc",client.getString("client_pay_desc").split(","));
}
if (StringUtils.isNotBlank(client.getString("parent_client_id"))
&& sysClientMapper.childClientId(client.getIntValue("client_id")).size() > 0) {
@ -767,8 +767,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
JSONObject clientConfig = new JSONObject();
clientConfig.put("client_id", clientId);
clientConfig.put("client_moniker", client.getString("client_moniker"));
clientConfig.put("client_pay_type", updateInfo.getString("client_pay_type"));
clientConfig.put("client_pay_desc", updateInfo.get("client_pay_desc"));
if (StringUtils.isNotBlank(updateInfo.getString("client_pay_type"))&& StringUtils.isNotBlank(updateInfo.getString("client_pay_desc"))) {
clientConfig.put("client_pay_type", updateInfo.getString("client_pay_type"));
clientConfig.put("client_pay_desc", updateInfo.getString("client_pay_desc"));
}
clientConfigMapper.update(clientConfig);
clientInfoCacheSupport.clearClientCache(clientId);
}

Loading…
Cancel
Save