|
|
|
@ -9,8 +9,10 @@ import au.com.royalpay.payment.manage.mappers.system.PermissionPartnerFunctionMa
|
|
|
|
|
import au.com.royalpay.payment.manage.mappers.system.PermissionPartnerModuleMapper;
|
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.scanner.PermissionNode;
|
|
|
|
|
import au.com.royalpay.payment.manage.permission.manager.scanner.PermissionPartnerReader;
|
|
|
|
|
import au.com.royalpay.payment.manage.system.core.PermissionClientModulesService;
|
|
|
|
|
import au.com.royalpay.payment.tools.exceptions.BadRequestException;
|
|
|
|
|
import au.com.royalpay.payment.tools.permission.enums.ManagerRole;
|
|
|
|
|
import au.com.royalpay.payment.tools.utils.id.IdUtil;
|
|
|
|
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
|
|
|
|
|
@ -40,6 +42,8 @@ public class PartnerPermissionManagerImpl implements PartnerPermissionManager {
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionClientModuleMapper permissionClientModuleMapper;
|
|
|
|
|
@Resource
|
|
|
|
|
private PermissionClientModulesService permissionClientModulesService;
|
|
|
|
|
@Resource
|
|
|
|
|
private ClientMapper clientMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -129,7 +133,8 @@ public class PartnerPermissionManagerImpl implements PartnerPermissionManager {
|
|
|
|
|
clientMod.put("client_moniker", clientMod.getString("client_moniker"));
|
|
|
|
|
clientMod.put("module_id", nModuleId.getString("id"));
|
|
|
|
|
clientMod.put("is_valid", 1);
|
|
|
|
|
permissionClientModuleMapper.save(clientMod);
|
|
|
|
|
clientMod.put("id", IdUtil.getId());
|
|
|
|
|
permissionClientModulesService.save(clientMod);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
if (!module.getInitialize()) {
|
|
|
|
@ -138,6 +143,7 @@ public class PartnerPermissionManagerImpl implements PartnerPermissionManager {
|
|
|
|
|
clientMod.put("client_moniker", clientMod.getString("client_moniker"));
|
|
|
|
|
clientMod.put("module_id", nModuleId.getString("id"));
|
|
|
|
|
clientMod.put("is_valid", 0);
|
|
|
|
|
clientMod.put("is_valid", IdUtil.getId());
|
|
|
|
|
permissionClientModuleMapper.save(clientMod);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|