Browse Source

更改机构修改逻辑,没有parent 不限制其更改

hym 4 years ago
parent
commit
7ce3dfa7c5

+ 1 - 1
user_center/src/main/java/com/huaxu/service/impl/OrgServiceImpl.java

@@ -104,7 +104,7 @@ public class OrgServiceImpl implements OrgService {
             if(orgType.getChildType()!=null&&org.getOrgType().equals("department")
                     &&orgType.getChildType().equals("company")){
                     return -2;
-            }else if(orgType.getParentOrgId()!=null&&org.getOrgType().equals("company")&&
+            }else if(orgType.getParentType()!=null&&org.getOrgType().equals("company")&&
                       orgType.getParentType().equals("department")){
                     return -3;
             }