|
|
|
@ -13,6 +13,7 @@ import au.com.royalpay.payment.manage.analysis.mappers.TransactionAnalysisMapper
|
|
|
|
|
import au.com.royalpay.payment.manage.appclient.beans.AppClientBean;
|
|
|
|
|
import au.com.royalpay.payment.manage.application.core.SimpleClientApplyService;
|
|
|
|
|
import au.com.royalpay.payment.manage.device.core.DeviceManager;
|
|
|
|
|
import au.com.royalpay.payment.manage.management.sysconfig.core.impls.PermissionPartnerManagerImpl;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.financial.FinancialBDConfigMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.log.*;
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.payment.TransactionMapper;
|
|
|
|
@ -268,6 +269,8 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
private PermissionPartnerModuleMapper permissionPartnerModuleMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionClientModuleMapper permissionClientModuleMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionPartnerManagerImpl permissionPartnerManagerImpl;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -567,19 +570,7 @@ public class ClientManagerImpl implements ClientManager, ManagerTodoNoticeProvid
|
|
|
|
|
clientConfig.put("client_id", partner.getIntValue("client_id"));
|
|
|
|
|
clientConfig.put("client_moniker", partner.getString("client_moniker"));
|
|
|
|
|
clientConfigService.save(clientConfig);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<JSONObject> moduleId = permissionPartnerModuleMapper.list();
|
|
|
|
|
for (JSONObject moduleClientAdd : moduleId) {
|
|
|
|
|
moduleClientAdd.put("client_id", partner.getIntValue("client_id"));
|
|
|
|
|
moduleClientAdd.put("client_moniker", partner.getString("client_moniker"));
|
|
|
|
|
moduleClientAdd.put("module_id", moduleClientAdd.getString("id"));
|
|
|
|
|
moduleClientAdd.put("is_valid", 1);
|
|
|
|
|
permissionClientModuleMapper.save(moduleClientAdd);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
permissionPartnerManagerImpl.permissionClientModuleSave(partner.getIntValue("client_id"),partner.getString("client_moniker"));
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
throw new BadRequestException("error.partner.valid.dumplicate_client_moniker");
|
|
|
|
|
}
|
|
|
|
|