1、云星空登录webapi产品模块,选择“元数据查询”,将表单id天写到指定位置,点击验证接口,ctrl+F 搜索“禁用状态”可获取
“禁用状态”字段的取值
结果如下:[{"Value":"A","Caption":"否","Seq":1,"Invalid":false},{"Value":"B","Caption":"是","Seq":2,"Invalid":false}]
“value”代表数据库里实际存储的值,“Caption”代表云星空前端界面展示的值
解析结果为:A:否;B:是
2、根据上一步解析结果写sql转换:
select case?
when 'A' then '0'
when 'B' then '1'
end
3、lianjieerp,产品接口配置禁用状态字段映射,crm取值方法选择sql查询,sql为第二步的转换sql
4、云星空webapi 物料模块,查询“禁用日期”字段名称:FForbidDate
5、进入连接erp数据库(数据库端口:33308)
数据库:link2erp
表:exchaccount_bill
字段exchbill_id=2:代表本行为产品接口
6、向右滚动找到:erp_exchtimefields、erp_exchtimefieldsrule两列,修改产品接口信息行这两个值为(erp_exchtimefields:FForbidDate、erp_exchtimefieldsrule)
erp_exchtimefields 字段填写时间字段名
erp_exchtimefieldsrule 字段填写判断规则
7、清理lianjieerp缓存