Commit ee38d2d3 by qwmqiuwenmin

fix

parent e6f1722a
......@@ -212,7 +212,8 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
if(status != null && status == 2) {
DepartmentDTO parent = getParent(departmentId);
if(parent == null) {
// WxEen
// parent = getRootByEnterpriseId(wxEnterpriseId);
}
}
}
......@@ -220,7 +221,11 @@ public class DepartmentApiServiceImpl implements DepartmentApiService {
}
/**
* 向上找父节点
* @param departmentId
* @return
*/
private DepartmentDTO getParent(String departmentId) {
DepartmentDTO department = departmentService.getByRelatedId(departmentId);
if(department == null) {
......
......@@ -29,5 +29,5 @@
<dubbo:service interface="com.gic.haoban.manage.api.service.StaffDepartmentRelatedApiService" ref="staffDepartmentRelatedApiServiceImpl" timeout="10000" />
<dubbo:service interface="com.gic.haoban.manage.api.service.WxEnterpriseApiService" ref="wxEnterpriseApiServiceImpl" timeout="10000" />
<dubbo:reference interface="com.gic.enterprise.api.service.DepartmentService" id="gicDepartmentService"/>
</beans>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment