dromara / MaxKey

🗝️MaxKey SSO ,Leading-Edge IAM-IDaas(Identity and Access Management) Product,业界领先的IAM-IDaas身份管理和认证产品,支持OAuth2.x、OpenID Connect、SAML2.0、JWT、CAS、SCIM等SSO标准协议,基于RBAC统一权限控制,实现用户生命周期管理,开源、安全、合规、自主可控。
https://www.maxkey.top
Apache License 2.0
1.51k stars 331 forks source link

企业微信同步问题,只同步了部分部分,docker-compose #218

Closed so-easy closed 2 weeks ago

so-easy commented 7 months ago

2024-03-28 16:56:04.982 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.updateSyncTime:135 - ==> Preparing: update mxk_synchro_related set synctime = ? where id= ? 2024-03-28 16:56:04.983 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.updateSyncTime:135 - ==> Parameters: 2024-03-28 16:56:04(String), 970763277137084416(String) 2024-03-28 16:56:04.988 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.updateSyncTime:135 - <== Updates: 1 2024-03-28 16:56:04.988 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.synchronizer.workweixin.WorkweixinOrganizationService:49 - dept : 46 社群运营 47 2024-03-28 16:56:04.988 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.find:135 - ==> Preparing: SELECT sel_tmp_table. FROM mxk_synchro_related sel_tmp_table WHERE (instid = '1' and syncId = '4' and originid = '46' and objecttype = 'Organization') 2024-03-28 16:56:04.988 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.find:135 - ==> Parameters: 2024-03-28 16:56:04.988 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.find:135 - <== Total: 0 2024-03-28 16:56:04.989 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.find:135 - ==> Preparing: SELECT sel_tmp_table. FROM mxk_synchro_related sel_tmp_table WHERE (instid = '1' and syncId = '4' and originid = '47' and objecttype = 'Organization') 2024-03-28 16:56:04.989 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.find:135 - ==> Parameters: 2024-03-28 16:56:04.989 DEBUG [http-nio-9526-exec-8] org.dromara.maxkey.persistence.mapper.SynchroRelatedMapper.find:135 - <== Total: 0 java.lang.NullPointerException: Cannot invoke "org.dromara.maxkey.entity.SynchroRelated.getObjectId()" because "synchroRelatedParent" is null at org.dromara.maxkey.synchronizer.workweixin.WorkweixinOrganizationService.buildOrganization(WorkweixinOrganizationService.java:120) at org.dromara.maxkey.synchronizer.workweixin.WorkweixinOrganizationService.sync(WorkweixinOrganizationService.java:62) at org.dromara.maxkey.synchronizer.workweixin.WorkweixinSynchronizerService.sync(WorkweixinSynchronizerService.java:53) at org.dromara.maxkey.web.config.contorller.SynchronizersController.synchr(SynchronizersController.java:95) at jdk.internal.reflect.GeneratedMethodAccessor748.invoke(Unknown Source) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:205) at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:150) at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:118) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:884) at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:797) at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1081) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:974) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1011) at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:903) at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:564)

so-easy commented 7 months ago
image
so-easy commented 7 months ago

1711621918612

so-easy commented 7 months ago
企业微信截图_72805c42-bb89-4c07-b17b-66c01a7ba857

Preparing: UPDATE mxk_organizations SET orgcode = ? , orgname = ? , parentid = ? , parentname = ? , level = ? , sortindex = ? , description = ? , status = ? , instid = ? WHERE (id = ?) 更新组织部门,缺少type 类型,,页面少一列,而且无法全部同步

image
yumu7777777 commented 7 months ago

image 您好!企业微信扫码登录你配置过吗?为啥我的是404

shimingxy commented 2 weeks ago

请使用最新版本4.1.x进行测试验证,并重新开新的issue