请输入
菜单

u8 apai 配置注意事项

下载

1、版本要求

连接erp版本需要时 6.2.7 及以上版本 。

u8版本 支持U8V12.0 及更高版本(u8版本越高越好,api可能需要更新补丁)

2、目前支持的接口模块及方向:

客户(crm->erp)

产品(erp->crm)

销售订单(erp->crm)

u8发货单 -crm出库单(erp->crm)

收款单(erp->crm)

即时库存报表

3、 api文档: https://open.yonyouup.com/apiCenter/index

4、创建并上线应用:(客户操作,需要实名认证,上线后的api 可以一直调用)

   对应文档:https://open.yonyouup.com/documentCenter/createFirstApp

5、查询接口添加返回字段或者筛选条件的文档:https://www.yuque.com/huhy/bomwzg/cba4lpmhek9fey7u

 

u8的预置接口部分内容不满足lianjieerp的同步获取,有部分接口内容是必须要调整的 ,调整内容如下:

以下要修改的文件都在u8开放平台客户端安装路径yonyouup\openapi-client\config\META-INF下
修改后的参考文件:api客户端修改文件备份.rar

1、销售订单erp->crm接口 :

\config\META-INF\datasources\query\saleorderlist.xml

       <sql>  中添加  :

               ,convert(nvarchar(25), COALESCE( a.dmodifysystime,a.dcreatesystime), 21) as modifysystime     

       <group_by> 中添加 :

               ,a.dmodifysystime

 

\rules\saleorderlist\rule.xml
       <field_list>中添加:
              ,modifysystime

\templates\query\saleorderlist.xml

<saleorderlist>中添加:

 <field display="verifysystime_begin" name="verifysystime" operation="&gt;=" value="" logic="and"/>
 <field display="verifysystime_end" name="verifysystime" operation="&lt;=" value="" logic="and"/>
 <field display="modifysystime_begin" name="modifysystime" operation="&gt;=" value="" logic="and"/>
 <field display="modifysystime_end" name="modifysystime" operation="&lt;=" value="" logic="and"/>

 

 

2、u8发货单 -crm出库单(erp->crm)

\config\META-INF\datasources\query\consignmentlist.xml

        <sql>  中添加  :

              ,convert(nvarchar(25), a.dverifysystime, 21) as verifysystime
              ,convert(nvarchar(25), COALESCE( a.dmodifysystime,a.dcreatesystime), 21) as modifysystime 
 
       <group_by> 中添加 :
              ,a.dcreatesystime,a.dverifysystime,a.dmodifysystime
 

\rules\consignmentlist\rule.xml

       <field_list>中添加:
              ,verifysystime,modifysystime
 
\templates\query\consignmentlist.xml

添加:

<field display="dverifysystime_begin" name="verifysystime" operation="&gt;=" value="" logic="and"/>
<field display="dverifysystime_end" name="verifysystime" operation="&lt;=" value="" logic="and"/>
<field display="dmodifysystime_begin" name="modifysystime" operation="&gt;=" value="" logic="and"/>
<field display="dmodifysystime_end" name="modifysystime" operation="&lt;=" value="" logic="and"/>

 

3、收款单(erp->crm)

\config\META-INF\datasources\query\acceptlist.xml

       <sql>  中添加  :

              ,convert(nvarchar(25),  dverifysystime, 21) as verifysystime
              ,convert(nvarchar(25), COALESCE(  dmodifysystime, dcreatesystime), 21) as modifysystime 
 
 
\rules\acceptlist\rule.xml
       <field_list>中添加:
              ,verifysystime,modifysystime
 
\templates\query\acceptlist.xml
 
添加:
<field display="verifydate_begin" name="verifysystime" operation="&gt;=" value="" logic="and"/>
<field display="verifydate_end" name="verifysystime" operation="&lt;=" value="" logic="and"/>
<field display="dmodifysystime_begin" name="modifysystime" operation="&gt;=" value="" logic="and"/>
<field display="dmodifysystime_end" name="modifysystime" operation="&lt;=" value="" logic="and"/>
<field display="voucherstate" name="voucherstate" operation="=" value="" logic="and"/>

 

最近修改: 2026-03-23