功能说明:获取客户详情
请求方式:POST(HTTPS)
请求地址:https://qwif.do1.com.cn/qwcgi/api/crm/client/getClientDetail.do?token=token&corpId=corpId
{
"clientId":"c5c17525-0ff2-4425-a57b-b075290f738f"
}
| 参数 | 说明 | 类型 | 是否必填 | 备注 |
|---|---|---|---|---|
| clientId | 客户Id | String | 是 |
|
// 创建请求参数
CrmClientDetailReqVO vo = new CrmClientDetailReqVO();
// 设置获取类型
vo.setClientId("bf6af4f7-1a7d-468c-bb66-cf3f18a28869");
System.out.println(JSONUtil.stringify(vo));
CrmApi api = QwSdkUtil.getInter(CrmApi.class);
// 调用接口
ApiCrmClientDetailsResultVO clientInfo = api.getClientDetail(
QwSdkUtil.getCacheToken(), vo);
System.out.println(JSONUtil.stringify(clientInfo));
{
"code":"0",
"data":
{
"clientInfo":
{
"address":"广东省广州市天河区员村一横路3号华颖轩1-2层",
"areaCode":"天河区",
"chargePersons":
[
{
"id":"2a442250fe1d4c178a7e22e1e3794317",
"name":"刘先生"
}
],
"cityCode":"广州市",
"clientCode":"2019062520190619000108",
"clientName":"道一",
"createTime":"2019-06-25 10:30:00",
"creator":"张三",
"customFields":
[
{
"fieldName":"其他号码",
"fieldValue":"13355556666"
},
{
"fieldName":"百分数",
"fieldValue":"20%"
},
{
"fieldName":"日期",
"fieldValue":"2019-06-07 10:00"
},
{
"fieldName":"文本",
"fieldValue":"qweasdzxc123"
},
{
"fieldName":"整数",
"fieldValue":"100000"
},
{
"fieldName":"小数",
"fieldValue":"123.45"
}
],
"email":"123456789@do1.com.cn",
"industryList":"计算机软件,移动互联网",
"latitude":"23.128263",
"longitude":"113.359385",
"phone":"13333333333",
"pool":"默认公海",
"provinceCode":"广东省",
"relativePersons":
[
{
"id":"2a442250fe1d4c178a7e22e1e3794317",
"name":"张小姐"
},
{
"id":"7f15f5b13d254ed7a46a42e1ca0ca225",
"name":"李先生"
}
],
"remark":"这是备注",
"seniorFields":
[
{
"fieldName":"(表单)单行文字",
"fieldType":"TextField",
"fieldValue":"(表单)单行文字"
},
{
"fieldName":"(表单)邮箱",
"fieldType":"EmailField",
"fieldValue":"baidu@163.com"
},
{
"fieldName":"(表单)数字",
"fieldType":"NumberField",
"fieldValue":"17"
},
{
"fieldName":"(表单)电话",
"fieldType":"TelephoneField",
"fieldValue":"13212345679"
},
{
"fieldName":"(表单)手机",
"fieldType":"MobileField",
"fieldValue":"13212345688"
},
{
"fieldName":"(表单)多行文字",
"fieldType":"TextArea",
"fieldValue":"(表单)多行文字\n(表单)多行文字\n(表单)多行文字"
},
{
"fieldName":"(表单)日期",
"fieldType":"DateField",
"fieldValue":"2019-12-04"
},
{
"fieldName":"(表单)时间",
"fieldType":"TimeField",
"fieldValue":"16:01"
},
{
"fieldName":"(表单)日期时间",
"fieldType":"DateTimeField",
"fieldValue":"2019-12-04 16:01"
},
{
"fieldName":"(表单)单项选择",
"fieldType":"RadioButton",
"fieldValue":"选项2"
},
{
"fieldName":"(表单)多项选择",
"fieldType":"CheckBox",
"fieldValue":
[
"选项1",
"选项3"
]
},
{
"fieldName":"(表单)下拉框",
"fieldType":"DropDown",
"fieldValue":"选项2"
},
{
"fieldName":"(表单)评分",
"fieldType":"RatingField",
"fieldValue":"3"
},
{
"fieldName":"(表单)地理位置",
"fieldType":"GeoField"
},
{
"fieldName":"(表单)说明项",
"fieldType":"ImageCheckBox"
},
{
"fieldName":"(表单)分节",
"fieldType":"SectionBreak"
},
{
"fieldName":"(表单)图片",
"fieldType":"ImageField",
"fieldValue":
[
{
"fileExt":"JPEG",
"fileName":"test12_20191204160143178_364.JPEG",
"fileSizeStr":"22.21 K",
"id":"fo03a32cded98b45f0802326e78a3422aa",
"url":"/upload/img/b17efb43292e4cc9ac5d0b46bce059c4/20191204/b565131ef6364b68b5202b7e3a2ea596.jpeg"
}
]
},
{
"fieldName":"(表单)省市区",
"fieldType":"CityField",
"fieldValue":"北京市:北京市:西城区"
},
{
"fieldName":"(表单)计算式",
"fieldType":"EquationField",
"fieldValue":"17"
},
{
"fieldName":"(表单)两级下拉框",
"fieldType":"CascadeDropDown",
"fieldValue":"选项1:二级选项1"
},
{
"fieldName":"(表单)微信扫码",
"fieldType":"ImageRadioButton"
},
{
"fieldName":"(表单)流水号",
"fieldType":"SerialNumberField",
"fieldValue":"0003"
},
{
"fieldName":"(表单)手写签名",
"fieldType":"HandWrittenField"
},
{
"fieldName":"(表单)通讯录成员",
"fieldType":"MEMBERCustomerField",
"fieldValue":
[
{
"deptFullName":"开发小组1",
"deptId":"8f68dfcc400dcbcea2c02b92de29fc4",
"headPic":"http://shp.qpic.cn/bizmp/ck4hSGq23RjMhicqucxwgwOb1n45wJCODzsLL87zrDAwBEAFia3Fb2yg/100",
"mobile":"13212345678",
"orgId":"df3-292e-4cc9-ac5d-0b46bce059c4",
"personName":"张三",
"userId":"dsdd67f34b68ae590ccaadcbf49c0ad",
"userNo":"001",
"wxUserId":"zhangsan"
},
{
"deptFullName":"开发小组2",
"deptId":"2c81deb6288576399ff52671b9fbb875",
"headPic":"http://shp.qpic.cn/bizmp/ck4hSGq23RgbOh6S2MzkhGNyJTLmqHgMNCib3bJqiaZXeK7fZ9LhGTtQ/100",
"mobile":"13412345678",
"orgId":"df3-292e-4cc9-ac5d-0b46bce059c4",
"personName":"李四",
"userId":"dfsddf33d51ddc3c39bc5571bf8",
"userNo":"002",
"wxUserId":"lisi"
}
]
},
{
"fieldName":"(表单)部门",
"fieldType":"DEPTCustomerField",
"fieldValue":
[
{
"departmentName":"部门1",
"id":"1251fc59231faf44bd47fb68c834704"
},
{
"departmentName":"部门2",
"id":"fdsc47932215f1019856bc4d55ade80f"
},
{
"departmentName":"部门3",
"id":"67fdb35fc3ddb7bfefe41440411dbe16"
}
]
}
],
"types":"VIP客户,测试用户",
"updateTime":"2019-06-25 10:30:00",
"website":"www.do1.com.cn"
}
},
"desc":"成功"
}
clientInfo参数
|
参数
|
说明 |
备注 |
|---|---|---|
|
clientCode |
客户编码 |
|
|
clientName |
客户名 |
|
|
types |
客户类型 |
|
|
pool |
所属公海 |
|
|
provinceCode |
省份 |
|
|
cityCode |
市区 |
|
|
areaCode |
地区 |
|
|
address |
具体地址 |
|
|
latitude |
纬度 |
|
|
longitude |
经度 |
|
|
industryList |
行业 |
|
|
phone |
联系电话 |
|
|
|
邮箱 |
|
|
website |
网站 |
|
|
remark |
备注 |
|
|
chargePersons |
负责人 |
|
|
relatviePersons |
相关人 |
|
|
submitType |
通知类型 |
|
|
customFields |
自定义字段 |
|
|
seniorFields | 表单字段 |
|
|
creator |
创建人 |
|
|
createTime |
创建日期 |
|
|
updateTime |
更新日期 |
|
seniorFields参数
|
参数 | 说明 | 备注 |
|---|---|---|
|
fieldName | 字段名称 |
|
|
fieldType |
字段类型 |
TextField(单行文字)、EmailField(邮箱)、NumberField(数字)、TelephoneField(电话)、MobileField(手机)、 ImageRadioButton(微信扫码)、SerialNumberField(流水号)、HandWrittenField(手写签名)、MEMBERCustomerField(通讯录成员)、 DEPTCustomerField(部门) |
|
fieldValue | 字段值 |
(1) 如果是图片类型,则是一个图片对象,包括fileName(文件名)、fileSizeStr(文件大小)、id(文件id)、fileExt(文件类型)、url(文件地址); (2) 如果是通讯录类型,则是一个通讯录用户对象,包括personName(用户名)、wxUserId(用户微信id)、userNo(用户编号)、deptId(部门id)、 mobile(联系方式)、departmentNo(部门编号)、headPic(头像地址)、userId(用户id)、orgId(机构id)、deptFullName(部门全称); (3) 如果是部门类型,则是一个部门对象,包括departmentName(部门名称)、id(部门id); |