|
|
@ -113,12 +113,12 @@ public class PermissionPartnerManagerImpl implements PermissionPartnerManager {
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void permissionClientModuleSave(int clientId, String clientMoniker) {
|
|
|
|
public void permissionClientModuleSave(int clientId, String clientMoniker) {
|
|
|
|
List<JSONObject> moduleId = permissionPartnerModuleMapper.listInit();
|
|
|
|
List<JSONObject> moduleId = permissionPartnerModuleMapper.list();
|
|
|
|
for (JSONObject moduleClientAdd : moduleId) {
|
|
|
|
for (JSONObject moduleClientAdd : moduleId) {
|
|
|
|
moduleClientAdd.put("client_id", clientId);
|
|
|
|
moduleClientAdd.put("client_id", clientId);
|
|
|
|
moduleClientAdd.put("client_moniker", clientMoniker);
|
|
|
|
moduleClientAdd.put("client_moniker", clientMoniker);
|
|
|
|
moduleClientAdd.put("module_id", moduleClientAdd.getString("id"));
|
|
|
|
moduleClientAdd.put("module_id", moduleClientAdd.getString("id"));
|
|
|
|
moduleClientAdd.put("is_valid", 1);
|
|
|
|
moduleClientAdd.put("is_valid", moduleClientAdd.getBooleanValue("initialize"));
|
|
|
|
permissionClientModulesService.save(moduleClientAdd);
|
|
|
|
permissionClientModulesService.save(moduleClientAdd);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|