|
|
|
@ -3598,16 +3598,16 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String subRpayMerchantApplication(String clientMoniker, JSONObject manager) {
|
|
|
|
|
public void subRpayMerchantApplication(String clientMoniker, JSONObject manager) {
|
|
|
|
|
JSONObject client = getClientInfoByMoniker(clientMoniker);
|
|
|
|
|
if (client == null) {
|
|
|
|
|
throw new InvalidShortIdException();
|
|
|
|
|
}
|
|
|
|
|
checkOrgPermission(manager, client);
|
|
|
|
|
|
|
|
|
|
List<JSONObject> selectByshortName = sysRpayMerchantApplyMapper.selectByShortName(client.getIntValue("client_id"),client.getString("short_name"));
|
|
|
|
|
List<JSONObject> listByshortName = sysRpayMerchantApplyMapper.listByShortName(client.getIntValue("client_id"),client.getString("short_name"));
|
|
|
|
|
|
|
|
|
|
if (selectByshortName.size()>0) {
|
|
|
|
|
if (listByshortName.size()>0) {
|
|
|
|
|
throw new BadRequestException("请修改【" + clientMoniker + "】的Company shortName信息(请避免和Rpay+商务号列表内的Company Short Name重复)");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -3625,11 +3625,10 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
merchantApply.put("business_category", client.getString("royalpayindustry"));
|
|
|
|
|
merchantApply.put("merchant_shortname", client.getString("short_name"));
|
|
|
|
|
sysRpayMerchantApplyMapper.insertRpayMerchantApply(merchantApply);
|
|
|
|
|
clientMapper.updateRpayEnterpriseId(client.getIntValue("client_id"), rpayMerchantInfo.getString("merchantId"));
|
|
|
|
|
}else {
|
|
|
|
|
throw new BadRequestException("请求失败");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|