# 组织模型数据管理(过时)

# 废弃说明

当前目录接口均返回XML格式,不推荐使用,建议使用基于JSON传输的Rest接口:【组织模型管理 (opens new window)

# 接口调用方式

本接口为主OA Http Rest,允许被异构系统远程调用,调用前需要调用Rest接口文档 (opens new window)获取Restful token身份凭证。

# 导出人员信息

将指定单位下所有人员导出为XML格式

接口请求说明:

http请求方式:GET
http://ip:port/seeyon/rest/data/members/{accountName}
例如:http://127.0.0.1:8088/seeyon/rest/data/members/%E5%8C%97%E4%BA%AC%E8%87%B4%E8%BF%9C%E5%8D%8F%E5%88%9B%E8%BD%AF%E4%BB%B6%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8

此处的单位名称为中文(xxx有限公司),在调用时要对URI中文部分采用UTF-8编码,解码操作接口已经封装。

参数说明:

参数 是否必须 说明
accountName 单位名称

返回说明

成功返回XML,否则抛异常。

<?xml version="1.0" encoding="UTF-8" ?>
<DataPojo type="IEOrganizationInfo" version="1" isnull="false" valuecount="1">
   <DataProperty propertyname="personArray" valuetype="10" isnull="false" length="2">
      <DataPojo type="PersonInfoParam_All" version="1" valuecount="20" isnull="false">
         <!-- 职务级别 -->
         <DataProperty propertyname="otypeName" valuetype="1" isnull="false">职务4</DataProperty>
         <!-- 出生日期 -->
         <DataProperty propertyname="birthday" valuetype="1" isnull="true"/>
         <!-- 排序号 -->
         <DataProperty propertyname="per_sort" valuetype="1" isnull="false">1</DataProperty>
         <!-- 性别 -->
         <DataProperty propertyname="sex" valuetype="1" isnull="true"/>
         <!-- 岗位 -->
         <DataProperty propertyname="ocupationName" valuetype="1" isnull="false">架构师</DataProperty>
         <!-- 单位ID -->
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <!-- 副岗 -->
         <DataProperty propertyname="secondOcupationName" valuetype="7" value="" isnull="false" length="0"/>
         <!-- 姓名 -->
         <DataProperty propertyname="trueName" valuetype="1" isnull="false">刁刁</DataProperty>
         <!-- 描述 -->
         <DataProperty propertyname="discursion" valuetype="1" isnull="true"/>
         <!-- 家庭电话 -->
         <DataProperty propertyname="familyPhone" valuetype="1" isnull="true"/>
         <!-- 办公电话 -->
         <DataProperty propertyname="officePhone" valuetype="1" isnull="true"/>
         <!-- 部门 -->
         <DataProperty propertyname="departmentName" valuetype="7" isnull="false" length="1">
            <DataValue isnull="false">平台架构部</DataValue>
         </DataProperty>
         <!-- 密码 -->
         <DataProperty propertyname="passWord" valuetype="1" isnull="false">123456</DataProperty>
         <!-- 员工号 -->
         <DataProperty propertyname="staffNumber" valuetype="1" isnull="false"/>
         <!-- 家庭住址 -->
         <DataProperty propertyname="familyAddress" valuetype="1" isnull="true"/>
         <!-- 人员ID -->
         <DataProperty propertyname="id" valuetype="3" value="-8361687019900091749"/>
         <!-- 身份证(此属性为预留字段,目前不支持) -->
         <DataProperty propertyname="identity" valuetype="1" isnull="true"/>
         <!-- 移动电话 -->
         <DataProperty propertyname="mobilePhone" valuetype="1" isnull="false">15810557581</DataProperty>
         <!-- 电子邮件 -->
         <DataProperty propertyname="email" valuetype="1" isnull="false">macangxi@seeyon.com</DataProperty>
         <!-- 登录名 -->
         <DataProperty propertyname="loginName" valuetype="1" isnull="false">macx</DataProperty>
      </DataPojo>
      <DataPojo type="PersonInfoParam_All" version="1" valuecount="20" isnull="false">
         <DataProperty propertyname="otypeName" valuetype="1" isnull="false">职务4</DataProperty>
         <DataProperty propertyname="birthday" valuetype="1" isnull="true"/>
         <DataProperty propertyname="per_sort" valuetype="1" isnull="false">2</DataProperty>
         <DataProperty propertyname="sex" valuetype="1" isnull="true"/>
         <DataProperty propertyname="ocupationName" valuetype="1" isnull="false">开发经理</DataProperty>
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <DataProperty propertyname="secondOcupationName" valuetype="7" value="" isnull="false" length="0"/>
         <DataProperty propertyname="trueName" valuetype="1" isnull="false">阿阳</DataProperty>
         <DataProperty propertyname="discursion" valuetype="1" isnull="true"/>
         <DataProperty propertyname="familyPhone" valuetype="1" isnull="true"/>
         <DataProperty propertyname="officePhone" valuetype="1" isnull="true"/>
         <DataProperty propertyname="departmentName" valuetype="7" isnull="false" length="1">
            <DataValue isnull="false">开发二部</DataValue>
         </DataProperty>
         <DataProperty propertyname="passWord" valuetype="1" isnull="false">123456</DataProperty>
         <DataProperty propertyname="staffNumber" valuetype="1" isnull="false"/>
         <DataProperty propertyname="familyAddress" valuetype="1" isnull="true"/>
         <DataProperty propertyname="id" valuetype="3" value="3282371030413167194"/>
         <DataProperty propertyname="identity" valuetype="1" isnull="true"/>
         <DataProperty propertyname="mobilePhone" valuetype="1" isnull="false"/>
         <DataProperty propertyname="email" valuetype="1" isnull="false"/>
         <DataProperty propertyname="loginName" valuetype="1" isnull="false">renhy</DataProperty>
      </DataPojo>
   </DataProperty>
</DataPojo>

# 导出岗位信息

将指定单位下所有岗位导出为XML格式。

接口请求说明:

http请求方式:GET
http://ip:port/seeyon/rest/data/posts/{accountName}
例如:http://127.0.0.1:8088/seeyon/rest/data/posts/xxx有限公司

参数说明:

参数 是否必须 说明
accountName 单位名称

返回说明

成功返回XML,否则抛异常。

<?xml version="1.0" encoding="UTF-8" ?>
<DataPojo type="IEOrganizationInfo" version="1" isnull="false" valuecount="1">
   <DataProperty propertyname="ocupationArray" valuetype="10" isnull="false" length="2">
      <DataPojo type="OcupationInfoParam_A8_All" version="1" valuecount="7" isnull="false">
         <!-- 岗位名称 -->
         <DataProperty propertyname="ocupationName" valuetype="1" isnull="false">开发经理</DataProperty>
         <!-- 单位ID -->
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <!-- 排序号 -->
         <DataProperty propertyname="sortId" valuetype="0" value="1"/>
         <!-- 描述 -->
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <!-- 代码 -->
         <DataProperty propertyname="code" valuetype="1" isnull="false"/>
         <!--类别 -->
         <DataProperty propertyname="type" valuetype="3" value="1"/>
         <!-- 部门 -->
         <DataProperty propertyname="departmentArray" valuetype="10" value="" isnull="false" length="0"/>
      </DataPojo>
      <DataPojo type="OcupationInfoParam_A8_All" version="1" valuecount="7" isnull="false">
         <DataProperty propertyname="ocupationName" valuetype="1" isnull="false">开发总监</DataProperty>
         <DataProperty propertyname="accountId" valuetype="3" value="0"/>
         <DataProperty propertyname="sortId" valuetype="0" value="2"/>
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <DataProperty propertyname="code" valuetype="1" isnull="false"/>
         <DataProperty propertyname="type" valuetype="3" value="1"/>
         <DataProperty propertyname="departmentArray" valuetype="10" value="" isnull="false" length="0"/>
      </DataPojo>
   </DataProperty>
</DataPojo>

# 导出职务信息

将指定单位下所有职务级别导出为XML格式。

接口请求说明:

http请求方式:GET
http://ip:port/seeyon/rest/data/orgLevels/{accountName}
例如:http://127.0.0.1:8088/seeyon/rest/data/orgLevels/xxx有限公司

参数说明:

参数 是否必须 说明
accountName 单位名称

返回说明

成功返回XML,否则抛异常。

<?xml version="1.0" encoding="UTF-8" ?>
<DataPojo type="IEOrganizationInfo" version="1" isnull="false" valuecount="1">
   <DataProperty propertyname="otypeArray" valuetype="10" isnull="false" length="2">
      <DataPojo type="OtypeInfoParam_A8_All" version="1" valuecount="6" isnull="false">
         <!-- 单位ID -->
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <!-- 职务级别序号 -->
         <DataProperty propertyname="levelId" valuetype="0" value="1"/>
         <!-- 描述 -->
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <!-- 代码 -->
         <DataProperty propertyname="code" valuetype="1" isnull="false"/>
         <!-- 名称 -->
         <DataProperty propertyname="OTypeName" valuetype="1" isnull="false">职务1</DataProperty>
         <!-- 映射职务级别名称 -->
         <DataProperty propertyname="parentName" valuetype="1" isnull="true"/>
      </DataPojo>
      <DataPojo type="OtypeInfoParam_A8_All" version="1" valuecount="6" isnull="false">
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <DataProperty propertyname="levelId" valuetype="0" value="2"/>
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <DataProperty propertyname="code" valuetype="1" isnull="false"/>
         <DataProperty propertyname="OTypeName" valuetype="1" isnull="false">职务2</DataProperty>
         <DataProperty propertyname="parentName" valuetype="1" isnull="true"/>
      </DataPojo>
   </DataProperty>
</DataPojo>

# 导出部门信息

将指定单位下所有部门导出为XML格式。

接口请求说明:

http请求方式:GET
http://ip:port/seeyon/rest/data/departments/{accountName}
例如:http://127.0.0.1:8088/seeyon/rest/data/departments/xxx有限公司

参数说明:

参数 是否必须 说明
accountName 单位名称

返回说明

成功返回XML,否则抛异常。

<?xml version="1.0" encoding="UTF-8" ?>
<DataPojo type="IEOrganizationInfo" version="1" isnull="false" valuecount="1">
   <DataProperty propertyname="depArray" valuetype="10" isnull="false" length="2">
      <DataPojo type="DepartmentInfoParam_All" version="1" valuecount="5" isnull="false">
         <!-- 单位ID -->
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <!-- 描述 -->
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <!-- 名称 -->
         <DataProperty propertyname="departmentName" valuetype="7" isnull="false" length="1">
            <DataValue isnull="false">平台架构部</DataValue>
         </DataProperty>
         <!-- 排序号 -->
         <DataProperty propertyname="dep_sort" valuetype="1" isnull="false">1</DataProperty>
         <!-- 部门代码 -->
         <DataProperty propertyname="departmentNumber" valuetype="1" isnull="false">001</DataProperty>
      </DataPojo>
      <DataPojo type="DepartmentInfoParam_All" version="1" valuecount="5" isnull="false">
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <DataProperty propertyname="departmentName" valuetype="7" isnull="false" length="1">
            <DataValue isnull="false">开发一部</DataValue>
         </DataProperty>
         <DataProperty propertyname="dep_sort" valuetype="1" isnull="false">2</DataProperty>
         <DataProperty propertyname="departmentNumber" valuetype="1" isnull="false"/>
      </DataPojo>
   </DataProperty>
</DataPojo>

# 导出组织模型信息

将指定单位下所有部门、人员、岗位、职务级别导出为XML格式。

接口请求说明:

http请求方式:GET
http://ip:port/seeyon/rest/data/organization/accountName/{accountName}
例如:http://127.0.0.1:8088/seeyon/rest/data/organization/accountName/%E5%8C%97%E4%BA%AC%E8%87%B4%E8%BF%9C%E5%8D%8F%E5%88%9B%E8%BD%AF%E4%BB%B6%E6%9C%89%E9%99%90%E5%85%AC%E5%8F%B8

参数说明:

参数 是否必须 说明
accountName 单位名称

返回说明

成功返回XML,否则抛异常。

<?xml version="1.0" encoding="UTF-8" ?>
<DataPojo type="IEOrganizationInfo" version="1" isnull="false" valuecount="4">
   <DataProperty propertyname="depArray" valuetype="10" isnull="false" length="1">
      <DataPojo type="DepartmentInfoParam_All" version="1" valuecount="5" isnull="false">
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <DataProperty propertyname="departmentName" valuetype="7" isnull="false" length="1">
            <DataValue isnull="false">平台架构部</DataValue>
         </DataProperty>
         <DataProperty propertyname="dep_sort" valuetype="1" isnull="false">1</DataProperty>
         <DataProperty propertyname="departmentNumber" valuetype="1" isnull="false">001</DataProperty>
      </DataPojo>
   </DataProperty>
   <DataProperty propertyname="ocupationArray" valuetype="10" isnull="false" length="1">
      <DataPojo type="OcupationInfoParam_A8_All" version="1" valuecount="7" isnull="false">
         <DataProperty propertyname="ocupationName" valuetype="1" isnull="false">架构师</DataProperty>
         <DataProperty propertyname="accountId" valuetype="3" value="0"/>
         <DataProperty propertyname="sortId" valuetype="0" value="3"/>
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <DataProperty propertyname="code" valuetype="1" isnull="false"/>
         <DataProperty propertyname="type" valuetype="3" value="1"/>
         <DataProperty propertyname="departmentArray" valuetype="10" value="" isnull="false" length="0"/>
      </DataPojo>
   </DataProperty>
   <DataProperty propertyname="otypeArray" valuetype="10" isnull="false" length="1">
      <DataPojo type="OtypeInfoParam_A8_All" version="1" valuecount="6" isnull="false">
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <DataProperty propertyname="levelId" valuetype="0" value="1"/>
         <DataProperty propertyname="discursion" valuetype="1" isnull="false"/>
         <DataProperty propertyname="code" valuetype="1" isnull="false"/>
         <DataProperty propertyname="OTypeName" valuetype="1" isnull="false">职务1</DataProperty>
         <DataProperty propertyname="parentName" valuetype="1" isnull="true"/>
      </DataPojo>
   </DataProperty>
   <DataProperty propertyname="personArray" valuetype="10" isnull="false" length="1">
      <DataPojo type="PersonInfoParam_All" version="1" valuecount="20" isnull="false">
         <DataProperty propertyname="otypeName" valuetype="1" isnull="false">职务1</DataProperty>
         <DataProperty propertyname="birthday" valuetype="1" isnull="true"/>
         <DataProperty propertyname="per_sort" valuetype="1" isnull="false">1</DataProperty>
         <DataProperty propertyname="sex" valuetype="1" isnull="true"/>
         <DataProperty propertyname="ocupationName" valuetype="1" isnull="false">架构师</DataProperty>
         <DataProperty propertyname="accountId" valuetype="3" value="-5254486337235892280"/>
         <DataProperty propertyname="secondOcupationName" valuetype="7" value="" isnull="false" length="0"/>
         <DataProperty propertyname="trueName" valuetype="1" isnull="false">马龙</DataProperty>
         <DataProperty propertyname="discursion" valuetype="1" isnull="true"/>
         <DataProperty propertyname="familyPhone" valuetype="1" isnull="true"/>
         <DataProperty propertyname="officePhone" valuetype="1" isnull="true"/>
         <DataProperty propertyname="departmentName" valuetype="7" isnull="false" length="1">
            <DataValue isnull="false">平台架构部</DataValue>
         </DataProperty>
         <DataProperty propertyname="passWord" valuetype="1" isnull="false">123456</DataProperty>
         <DataProperty propertyname="staffNumber" valuetype="1" isnull="false"/>
         <DataProperty propertyname="familyAddress" valuetype="1" isnull="true"/>
         <DataProperty propertyname="id" valuetype="3" value="-8361687019900091749"/>
         <DataProperty propertyname="identity" valuetype="1" isnull="true"/>
         <DataProperty propertyname="mobilePhone" valuetype="1" isnull="false">15810557581</DataProperty>
         <DataProperty propertyname="email" valuetype="1" isnull="false">macangxi@seeyon.com</DataProperty>
         <DataProperty propertyname="loginName" valuetype="1" isnull="false">macx</DataProperty>
      </DataPojo>
   </DataProperty>
</DataPojo>

# 导入组织模型

导入组织模型XML数据到指定单位。

接口请求说明:

http请求方式:POST
http://ip:port/seeyon/rest/data/organization/accountName/{accountName}
例如:http://127.0.0.1:8088/seeyon/rest/data/organization/accountName/xxx有限公司
请求body中包含要导入的组织模型XML数据。

参数说明:

参数 是否必须 说明
accountName 单位名称
导入的组织模型XML数据 数据格式参考导出组织模型数据

返回说明

成功返回0,否则返回-1。

创建人:admin
修改人:het