cs.crm.customers.checkFieldMatches
按指定字段组合检查匹配客户
- 请求路由:
cs.crm.customers.checkFieldMatches- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "cs.crm.customers.checkFieldMatches",
"data" : {
"replaceMe" : "字段匹配请求"
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
name | String | 否 | 客户中文名称 |
nameEn | String | 否 | 客户英文名称 |
abbreviation | String | 否 | 客户简称 |
unifiedSocialCreditCode | String | 否 | 统一社会信用代码 |
companyPhone | String | 否 | 公司电话 |
companyEmail | String | 否 | 公司邮箱 |
excludeCustomerId | String | 否 | 需要排除的客户 ID,编辑客户时用于排除自身 |
condition | String | 否 | 字段匹配条件 |
返回
匹配客户数量及最多五条明细
{ }
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
isDuplicate | Boolean | 是否存在匹配客户 |
matchCount | Number | 匹配客户总数 |
matches | Object[] | 匹配客户明细,按创建时间倒序最多返回五条 |
matches.[].customerId | String | 客户 ID |
matches.[].name | String | 客户中文名称 |
matches.[].matchedFields | String[] | 命中的请求字段名称列表 |
matches.[].salespersons | Object[] | 客户归属销售人员列表 |
matches.[].salespersons.[].department | String | 部门id |
matches.[].salespersons.[].departmentName | String | 部门名称 |
matches.[].salespersons.[].username | String | 用户标识 |
matches.[].salespersons.[].name | String | 用户名称 |
matches.[].salespersons.[].nameEn | String | 英文称呼,用于外部联系人的英文通知;缺失时不自动翻译姓名。 |
matches.[].salespersons.[].mobile | String | 用户手机号 |
matches.[].salespersons.[].email | String | 用户邮箱 |
matches.[].salespersons.[].position | String | 职位 |
matches.[].salespersons.[].contactRoles | String[] | 联系人承担的职责,支持多选;未指定时为空集合 |