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的同步获取,有部分接口内容是必须要调整的 ,调整内容如下:
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

,modifysystime

\templates\query\saleorderlist.xml
<saleorderlist>中添加:
<field display="verifysystime_begin" name="verifysystime" operation=">=" value="" logic="and"/>
<field display="verifysystime_end" name="verifysystime" operation="<=" value="" logic="and"/>
<field display="modifysystime_begin" name="modifysystime" operation=">=" value="" logic="and"/>
<field display="modifysystime_end" name="modifysystime" operation="<=" 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
,a.dcreatesystime,a.dverifysystime,a.dmodifysystime

\rules\consignmentlist\rule.xml
,verifysystime,modifysystime

添加:
<field display="dverifysystime_begin" name="verifysystime" operation=">=" value="" logic="and"/>
<field display="dverifysystime_end" name="verifysystime" operation="<=" value="" logic="and"/>
<field display="dmodifysystime_begin" name="modifysystime" operation=">=" value="" logic="and"/>
<field display="dmodifysystime_end" name="modifysystime" operation="<=" 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

,verifysystime,modifysystime

<field display="verifydate_begin" name="verifysystime" operation=">=" value="" logic="and"/>
<field display="verifydate_end" name="verifysystime" operation="<=" value="" logic="and"/>
<field display="dmodifysystime_begin" name="modifysystime" operation=">=" value="" logic="and"/>
<field display="dmodifysystime_end" name="modifysystime" operation="<=" value="" logic="and"/>
<field display="voucherstate" name="voucherstate" operation="=" value="" logic="and"/>
