Browse Source

fix bug:当请求只有集团编码并无项目id时报空指针的问题

lijie 2 years ago
parent
commit
1a9ef774f8

+ 1 - 1
adm-business/adm-middleware/src/main/java/com/persagy/proxy/common/service/impl/EmsAuthServiceImpl.java

@@ -64,7 +64,7 @@ public class EmsAuthServiceImpl extends AbstractAuthServiceImpl {
                 continue;
             }
             for (Project project : entry.getValue()) {
-                if (AppContext.getContext().getProjectId().equals(project.getProjectId())){
+                if (project.getProjectId().equals(AppContext.getContext().getProjectId())){
                     AppContext.getContext().setGroupCode(entry.getKey());
                     break flag;
                 }