|
|
@ -11,6 +11,7 @@ import com.epmet.utils.UserData; |
|
|
|
import com.epmet.utils.YantaiApi; |
|
|
|
import com.github.pagehelper.PageHelper; |
|
|
|
import com.github.pagehelper.PageInfo; |
|
|
|
import org.apache.commons.collections4.CollectionUtils; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
|
|
|
|
import java.util.List; |
|
|
@ -30,15 +31,17 @@ public class DataSyncUserAndOrgServiceImpl implements DataSyncUserAndOrgService |
|
|
|
|
|
|
|
@Override |
|
|
|
public Boolean yanTaiSyncUser(String organizationId) { |
|
|
|
List<OrgData> data = YantaiApi.getChildOuInfoByGuid(organizationId); |
|
|
|
List<UserData> data = YantaiApi.getUserByOuGuid(organizationId); |
|
|
|
//todo 更新或插入数据
|
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public Boolean yanTaiSyncOrg(String organizationId) { |
|
|
|
List<UserData> data = YantaiApi.getUserByOuGuid(organizationId); |
|
|
|
List<OrgData> data = YantaiApi.getChildOuInfoByGuid(organizationId); |
|
|
|
if (CollectionUtils.isNotEmpty(data)){ |
|
|
|
|
|
|
|
} |
|
|
|
return false; |
|
|
|
} |
|
|
|
|
|
|
|