员工组
员工组删除
员工
员工删除
员工登入
员工登出
员工修改密码
菜单配置项
员工菜单配置
客户单位
客户单位删除
客户
客户删除
拜访记录
拜访记录删除
需求变跟记录
需求变跟记录删除
合同记录
合同记录删除
员工组接口
功能
xxx
地址
/api/user/group
示例
http://localhost:9015/api/user/group?status=0
GET请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| status | str | all:所有组 1:启用的组 -1:删除的组 |
否,默认1 |
返回格式
{"data": [{"id": 1,"groupName": "管理员","groupDetail": "管理员组","createTime": "2021-11-09 14:42:06","updateTime": "2021-11-09 14:42:43","status": 0}],"status": 0}
POST请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| group_id | int | 组id | 修改:必须 创建:不传 |
|
| name | string | 组名 | 必须 | |
| content | string | 说明 | 否 |
返回格式
{"status": 0,"msg": "操作成功"}
员工组删除接口
功能
地址
/api/user/delgroup
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| group_id | int | 需求变更记录id | 是 |
返回
略
员工接口
功能
xxx
地址
/api/user/user
示例
http://localhost:9015/api/user/user
GET请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| page | 默认1 | |||
| count | 默认20 | |||
| status | str | all:所有员工 normal:启用和停用的员工 1:启用的员工 0:停用的员工 -1:删除的员工 |
否,默认1 | |
| type | int | 1:编内员工 2:通讯员 |
默认1 | |
| group_ids | array | 员工分组的id,客传多个,比如[1,2,3] | 默认全部组 |
返回格式
{"data": [{"id": 1,"number": 1,"group": 1,"nickName": "tom","realName": "tom li","headImageUrl": "www.baidu.com","phoneNumber": "123456","sex": 3,"roleId": 0,"openId": 0,"birthday": null,"title": null,"address": null,"school": null,"politicalAffiliation": null,"education": null,"rankId": 0,"rankType": 0,"departmentId": 0,"jobId": 0,"info": null,"entryTime": null,"officialTime": null,"resignTime": null,"lastLoginTime": null,"isLogin": 0,"createTime": "2021-11-09 15:26:57","updateTime": "2021-11-09 15:26:57","status": 1,"note": null,"group_name": ["管理员"]}],"status": 0,"page_info": {"total": 1,"page": 1,"count": 20}}
POST请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| user_id | int | 组id | 修改:必须 创建:不传 |
|
| phoneNumber | string | 电话号码 | 是 | |
| group_id | array | 员工组的id的数组 [1,2] |
是 | |
| number | int | 员工编号 | 否 | |
| nickName | string | 昵称 | 否 | |
| realName | string | 真名 | 否 | |
| headImageUrl | string | 头像图片链接 | 否 | |
| sex | int | 1 男 2 女 3 未知 |
否 | |
| openId | string | 否 | ||
| title | string | 否 | ||
| address | string | 否 | ||
| school | string | 否 | ||
| politicalAffiliation | string | 否 | ||
| education | string | 否 | ||
| info | string | 否 | ||
| entryTime | string | 格式: 2020-12-11 00:00:02 |
否 | |
| officialTime | string | 格式: 2020-12-11 00:00:02 |
否 | |
| resignTime | string | 格式: 2020-12-11 00:00:02 |
否 | |
| role_id | int | 角色的id 1 管理员 2 员工 3 通讯员 |
否 |
返回格式
{"status": 0,"msg": "操作成功"}
员工删除接口
功能
地址
/api/user/deluser
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| user_id | int | 需求变更记录id | 是 | |
| status | -1:删除 0:停用 |
默认-1 |
返回
略
员工登入接口
功能
xxx
地址
/api/user/login
示例
http://localhost:9015/api/user/login
POST请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| phoneNumber | str | 是 | ||
| password | str | 是 |
返回格式
{"msg": '登陆成功'"status": 0}
员工登出接口
功能
xxx
地址
/api/user/logout
示例
http://localhost:9015/api/user/logout
POST请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| phoneNumber | str | 是 | ||
| password | str | 是 |
返回格式
{"msg": '登出成功'"status": 0}
员工修改密码接口
功能
xxx
地址
/api/user/password
示例
http://localhost:9015/api/user/password
POST请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| phoneNumber | str | 是 | ||
| old_password | str | 是 | ||
| new_password | str | 是 |
返回格式
{"msg": '修改成功'"status": 0}
菜单配置项接口
功能
查询所有的可配置菜单项目
地址
/api/user/menu
get方法查询
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| page | 否,默认1 | |||
| count | 否,默认20 |
返回格式
{"status": 0,"data": [{"id": 1, "name": "客户管理","content": "","note": ""},{"id": 2, "name": "拜访记录","content": "","note": ""}],"page_info": {"total": 5,"page": 1,"count": 20}}
post方法修改、添加、删除
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| menu_id | int | 修改:是 创建:不传 |
||
| name | string | 菜单项显示的名字 | 修改:是 删除:否 |
|
| content | string | 菜单项说明 | 否 | |
| note | string | 菜单项备注 | 否 | |
有menu_id是修改和删除,没有menu_id是创建
有menu_id的情况下,没有name是删除
返回格式
{"status": 0,"msg": "操作成功"}
员工菜单接口
功能
查询员工的菜单配置界面
地址
/api/user/usermenu
get方法查询
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| user_id | int | 员工id | 否,不传的时候返回全部员工 | |
| page | 否,默认1 | |||
| count | 否,默认20 |
返回格式
{"data": [{"phoneNumber": "15331761337","user_id": 2,"realName": "小耳尖","number": "10000","nickName": "小耳尖","headImageUrl": "http://data.eartip.cn/static/upload/avatar/avatar_1577689147112.png","sex": 1,"birthday": "2020-09-01 00:00:00","title": 1,"address": "云南耳尖","school": "xx","education": "本科","entryTime": "2020-09-01 00:00:00","officialTime": "2020-09-02 00:00:00","resignTime": "2020-09-02 00:00:00","lastLoginTime": "2020-08-07 17:39:22","status": 1,"menu": [{"id": 1, "name": "客户管理","content": "","note": ""},{"id": 2, "name": "拜访记录","content": "","note": ""},{...}]}],"status": 0,"page_info": {"total": 7,"page": 1,"count": 20}}
post方法修改
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| user_id | int | 员工id | 是 | |
| menu | array | [1,2,3],菜单项的id的数组 | 是 |
返回格式
{"status": 0,"msg": "修改成功"}
客户单位接口
功能
查询单位、修改、新建单位
地址
/api/customers/organization
GET方法查询单位
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_name | int | 名字,根据传入参数模糊查询 | 否,不传的时候查询全部 | |
| status | string | all:所有 -1:删除的 0:待跟进中 1:跟进中 2:已过期 3:已完成 |
默认1 | |
| page | int | 默认1 | ||
| count | int | 默认20 | ||
| creator_id | str | 创建人的id | 默认返回全部 |
返回格式
{"data": [{"id": 2,"groupName": "工信部","groupDetail": null,"type": null,"provience": "北京市","city": "北京市","county": "朝阳区","address": null,"createTime": "2021-11-10 09:35:42","updateTime": "2021-11-10 09:35:42","status": 1,"note": null},{"id": 1,"groupName": "国务院","groupDetail": "中南海","type": null,"provience": "北京市","city": "北京市","county": "房山区","address": null,"createTime": "2021-11-10 09:34:23","updateTime": "2021-11-10 09:34:23","status": 1,"note": null}],"status": 0,"page_info": {"total": 2,"page": 1,"count": 20}}
POST方法创建、修改单位
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_id | 单位id | 修改:必须 创建:不传 |
||
| groupName | string | 单位名字 | 是 | |
| groupDetail | string | 单位说明 | 否 | |
| provience | string | |||
| city | string | |||
| county | string | |||
| address | string | |||
| note | string | |||
| legal_person | string | 法人 | ||
| register_capital | string | 注册资本 | ||
| registerDate | string | 成立日期 2020-12-12 |
||
| website | string | 网址 | ||
| creator_id | int | 创建这个客户单位组的员工 | 否,默认当前登陆员工 |
legal_person, register_capital, registerDate, wesite 2022年01月06日新增
creator_id 2022年1月13日新增
返回格式
客户单位状态修改接口
功能
地址
/api/customers/delorganization
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_id | int | 客户id | 是 | |
| status | int | -1:删除 1:正常 |
是 |
返回
略
客户接口
功能
查询客户、修改、新建客户
地址
/api/customers/customers
GET方法查询客户
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_name | str | 客户单位名字,模糊查询 | 否,不传的时候查询全部 | |
| organization_id | int | 客户单位id | 否 | |
| name | str | 客户姓名。模糊查询 | 否 | |
| status | str | all:所有客户 -1:删除的客户 1:正常的客户 |
默认1 | |
| phoneNumber | str | 根据客户人的手机号查询 | 否 | |
| page | int | 默认1 | ||
| count | int | 默认20 | ||
| creator_id | str | 创建人id | 默认全部 |
返回格式
{"data": [{"id": 1,"type": null,"nickName": null,"realName": "Jerry","avatar": "www.baidu.com","phoneNumber": "12345","job": null,"sex": 3,"password": null,"session": null,"cid": null,"openId": null,"level": 0,"isVip": 0,"isSenior": 0,"vipDueTime": null,"navigationDueTime": null,"createTime": "2021-11-10 10:48:55","updateTime": "2021-11-10 10:48:55","status": 1,"note": null,"organization_name": ["工信部"],}],"status": 0,"page_info": {"total": 1,"page": 1,"count": 20}}
POST方法创建、修改客户
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| customer_id | int | 修改:必须 创建:不传 |
||
| type | str | 客户单位名字,模糊查询 | 否 | |
| organization_id | array | 客户单位id的数组 [1,2,3] |
否 | |
| nickName | str | 客户姓名。模糊查询 | 否 | |
| realName | str | 是 | ||
| avatar | 否 | |||
| phoneNumber | str | 根据客户人的手机号查询 | 否 | |
| job | int | 否 | ||
| sex | int | 否 | ||
| cid | str | 否 | ||
| openId | str | 否 | ||
| level | str | 否 | ||
| isVip | int | 否 | ||
| isSenior | int | 否 | ||
| vipDueTime | str | 格式:2020-12-12 11:11:11 | 否 | |
| navigationDueTime | str | 格式:2020-12-12 11:11:11 | 否 | |
| note | str | 备注 | 否 | |
| legal_person | string | 法人 | 否 | |
| register_capital | string | 注册资本 | ||
| registerDate | string | 成立日期 2020-12-12 |
||
| website | string | 网址 | ||
| creator_id | int | 创建人id | 否,默认当前登陆员工id |
legal_person, register_capital, registerDate, website 2022年01月06日新增
creator_id 2022年1月13日新增
返回格式
客户删除接口
功能
地址
/api/customers/delcustomer
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| customer_id | int | 客户id | 是 |
返回
略
大的拜访记录接口(潜在客户记录)
功能
大的拜访记录,我把它叫潜在客户的记录
地址
/api/record/potential
GET请求方法查询
参数说明
| 名称
| 类型
| 说明
| 备注
| 是否必须
| | —- | —- | —- | —- | —- | | potent_id | int | id | | 否 | | organization_id | int | 客户单位id |
| 否,没有传的时候返回所有单位的跟进记录 |
| director_id | int | 客户负责员工的id | | 否,默认查询所有 |
| start_time | string | 开始时间:2020-01-01 00:00:00 | | 否,默认一周前 |
| end_time | string | 结束时间:2021-01-01 00:00:00 | | 否,默认现在 |
| page | int | 第几页 | | 否,默认1 |
| count | int | 每页的个数 | | 否,默认20 |
| status | str | all:所有
-1 删除
0 刚介入,待跟进
1 跟进中
2 过期
3 完成 | | 否,默认all |
返回格式
{"data": [{"id": 1,"director": "tom ai","recordTime": "2021-11-12 13:01:02","createTime": "2021-11-12 15:00:04","updateTime": "2021-11-12 15:00:04","status": 0,"note": null,"organization_name": "国务院"}],"status": 0,"page_info": {"total": 1,"page": 1,"count": 20}}
POST请求方法创建、修改
参数说明
| 名称
| 类型
| 说明
| 备注
| 是否必须
|
| —- | —- | —- | —- | —- |
| protent_id | int | 大的拜访记录的id | | 修改:必须
创建:不传 |
| organization_id | int | 客户单位id |
| 是 | | director_id | int | 客户负责员工的id | | 是 | | record_time | string | 客户介入的时间 | | 是 | | note | | 备注 | | 否 |
返回格式
大的拜访记录状态修改接口
功能
地址
/api/record/delpotent
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| potent_id | int | 大的拜访记录的id | protent_id | 是 |
| status | int | -1 删除 0 刚介入,待跟进 1 跟进中 2 过期 3 完成 |
是 |
返回
略
拜访记录接口
功能
拜访记录
地址
/api/record/follow
GET请求方法查询
参数说明
| 名称
| 类型
| 说明
| 备注
| 是否必须
|
| —- | —- | —- | —- | —- |
| protent_id | int | 大的拜访记录id,可以查询这条大记录下的所有小拜访记录 | | 是 |
| organization_id | int | 客户单位id | |
| start_time | string | 开始时间:2020-01-01 00:00:00 | | 否,默认一周前 |
| end_time | string | 结束时间:2021-01-01 00:00:00 | | 否,默认现在 |
| page | int | 第几页 | | 否,默认1 |
| count | int | 每页的个数 | | 否,默认20 |
| ~~否,没有传的时候返回所有单位的跟进记录
参数说明:返回的客户跟进记录会按照时间从新到旧返回
返回格式
{"data": [{"id": 3,"potential_id": 1,"event": null,"attach": null,"gain": null,"recordTime": "2021-11-11 16:00:00","createTime": "2021-11-12 15:20:11","updateTime": "2021-11-12 15:20:11","status": 0,"note": null,"operator_name": "tom ai","follower_name": ["tom ai","chally ai"],"customer_name": ["Jerry","tom"]},{"id": 2,"potential_id": 1,"event": null,"attach": null,"gain": null,"recordTime": "2021-11-11 16:00:00","createTime": "2021-11-12 15:20:03","updateTime": "2021-11-12 15:20:03","status": 0,"note": null,"operator_name": "tom ai","follower_name": ["tom ai","chally ai"],"customer_name": ["Jerry","tom"]}],"status": 0,"page_info": {"total": 2,"page": 1,"count": 20}}
POST请求方法创建、修改
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| protent_id | int | 大的拜访记录id | 创建:必须 修改:不传 |
|
| follow_id | int | 创建:不传 修改:必须 |
||
| customers_id | array | 客户id的数组 [1,2,3] 里面是客户id |
否 | |
| follower_id | array | 跟进者id的数组 | 哪些员工跟进了客户 例如:[1,2,3] :id为1、2、3的员工 |
是 |
| record_time | string | 拜访时间、需求变更的时间 | 是 | |
| event | 跟进的事件 1:接入 2:走访拜访 3:电话拜访 4:签约 5:售后 |
有拜访跟进记录的时候传 | 否 | |
| gain | string | 这次跟进的收获 | 否 | |
| event_attach | string | 附件url地址, 比如聊天截图等 |
否 | |
| event_note | string | 跟进备注 | 否 |
返回格式
{status: 0,msg: '创建成功'}{status: 1,msg: '失败描述'}
拜访记录删除接口
功能
地址
/api/record/delfollow
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| follow_id | int | 跟进记录id | 是 |
返回
略
需求变更记录接口
功能
地址
/api/record/demand
GET方法查询需求变更记录
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_id | int | 客户单位id | 否 | |
| 暂时未支持 | ||||
| start_time | str | 开始时间:2020-01-01 00:00:00 | 否,默认一周前 | |
| end_time | str | 结束时间:2021-01-01 00:00:00 | 否,默认现在 | |
| page | int | 默认1 | ||
| count | int | 默认20 |
返回格式
{"data": [{"id": 1,"content": "季报","attach": null,"recordTime": "2021-11-11 09:23:14","createTime": "2021-11-11 09:20:54","status": 0,"note": null,"operator_name": "tom ai","organization_name": "tom ai","follower_name": ["tom ai"],"customer_name": ["Jerry"]}],"status": 0,"page_info": {"total": 1,"page": 1,"count": 20}}
POST方法创建、修改记录
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| demand_id | int | 修改:必须 创建:不传 |
||
| customer_id | array | 客户id的数组 [1,2,3],123是客户id |
否 | |
| organization_id | int | 客户单位id | 是 | |
| follower_id | array | 跟进员工id的数组 [1,2,3] |
是 | |
| record_time | str | 格式:2020-11-11 00:00:01 | 是 | |
| content | str | 需求变跟内容 | 是 | |
| demand_attach | str | 附件url地址, 比如聊天截图等 |
否 | |
| demand_note | str | 需求备注 | 否 |
返回格式
需求变更记录删除接口
功能
地址
/api/record/deldemand
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| demand_id | int | 需求变更记录id | 是 |
返回
略
满意度查询、录入、修改接口
功能
地址
/api/feedback/satisfy
GET方法查询满意度
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_id | int | 客户单位id | 否,不传查询全部 | |
| customers_id | array | 客户id的数组 | 否 | |
| start_time | string | 开始时间:2020-01-01 00:00:00 | 否,默认一周前 | |
| end_time | string | 结束时间:2021-01-01 00:00:00 | 否,默认现在 | |
| page | int | 第几页 | 否,默认1 | |
| count | int | 每页的个数 | 否,默认20 |
返回格式
{"data": [{"id": 1,"value": 1,"attach": null,"recordTime": "2021-11-11 11:11:11","operator_id": 1,"createTime": "2021-11-11 11:40:37","note": null,"status": 0,"customers_name": ["Jerry","tom"],"organization_name": "国务院","operator_name": "tom ai","follower_name": []}],"status": 0,"page_info": {"total": 1,"page": 1,"count": 20}}
POST方法录入、修改满意度
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| satisfy_id | int | 修改:是 创建:不传 |
||
| organization_id | int | 客户单位id | 是 | |
| customers_id | array | 客户id的数组 | 否 | |
| record_time | string | 客户反馈的时间 | 是 | |
| follower_id | array | 被点赞、批评的员工的id的数组 | 例如: 三个人:[1,2,3] 一个人:[1] |
否 |
| attach | string | 附件url地址, 比如聊天截图等 |
否 | |
| value | int | 满意度的值(-10~10) | 是 | |
| note | string | 备注 | 否 |
返回格式
{status: 0,msg: '录入成功'}{status: 1,msg: '失败描述'}
示例
录入的请求参数:{"customers_id": 1,"record_time": "2021-07-15 01:02:30","follower_id": [1,2],"value": 4}
满意度删除接口
功能
满意度记录的删除
地址
/api/feedback/delsatisfy
请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| satisfy_id | int | 满意度记录的id | 是 |
返回格式
{status: 0,msg: '删除成功'}
合同记录查询、修改、新建接口
功能
地址
/api/contract/contract
GET方法查询合同记录
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_id | int | 客户的单位id | 否,不传的时候所有客户合同记录 | |
| start_time | string | 开始时间:2020-01-01 00:00:00 | 否,默认一年前 | |
| end_time | string | 结束时间:2021-01-01 00:00:00 | 否,默认现在 | |
| page | int | 第几页 | 否,默认1 | |
| count | int | 每页的个数 | 否,默认20 |
返回格式
{"data": [{"id": 1,"organization_id": 1,"name": "天下第一合同","code": null,"amount": "112.00","sign_time": "2021-11-11 14:49:08","follower": ["tom ai","chally ai"],"status": 0,"aging_start_time": null,"aging_end_time": null,"remit_amount": null,"remit_time": null,"createTime": "2021-11-11 14:49:08","updateTime": "2021-11-11 14:49:08","note": null,"organization_name": "国务院"}],"page_info": {"total": 1,"page": 1,"count": 20},"status": 0}
POST方法新建、修改合同
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| contract_id | 修改:是 新建:不传 |
|||
| organization_id | int | 单位id | 是 | |
| name | string | 合同名字 | 是 | |
| sign_time | string | 签约日期 | 比如:2022-01-01 12:00:00 | 是 |
| code | string | 合同编号 | 否 | |
| amount | float | 合同金额 | 否 | |
| remit_amount | float | 打款金额 | 否 | |
| remit_time | string | 打款时间 | 格式:2022-01-01 12:00:00 | 否 |
| creator_id | int | 创建人(用户)的id | 12 | 否 |
| follower_id | array | 跟进人id的数组 | [1,2,3] | 否 |
| editor_id | int | 编辑人(用户)的id | 34 | 否 |
| note | string | 备注 | 否 |
说明:有contract_id的时候是修改,没有的时候是创建
返回格式
{status: 0,msg: '操作成功'}{status: 1,msg: '失败描述'}
合同删除接口
功能
合同的删除
地址
/api/contract/delcontract
请求方法
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| contract_id | int | 合同的id | 是 |
返回格式
{status: 0,msg: '删除成功'}
统计相关的接口
签约金额、次数统计
功能
按照客户单位,查询一段时间内的签约金额、次数
地址
/api/stats/sign
请求方法
GET
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_ids | array | 客户单位id,可以传多个 [1,2,3] |
否,不传的时候返回所有 | |
| start_time | string | 开始时间:2020-01-01 00:00:00 | 否,默认一周前 | |
| end_time | string | 结束时间:2021-01-01 00:00:00 | 否,默认现在 | |
| page | int | 第几页 | 否,默认1 | |
| count | int | 每页的个数 | 否,默认20 |
返回格式
{"status": 0,"data": [{"organization_id": 83,"sign_amount": "100000.00","sign_count": 1,"min_sign_time": "2021-07-26 09:31:33"},{"organization_id": 84,"sign_amount": "100000.00","sign_count": 1,"min_sign_time": "2021-07-26 09:28:31"},{"organization_id": 1,"sign_amount": "1200000.00","sign_count": 1,"min_sign_time": "2021-07-21 00:00:00"}],"page_info": {"total": 3,"page": 1,"count": 20}}{status: 1,msg: '失败描述'}
需求变跟次数统计接口
功能
按照客户单位,查询一段时间内的需求变更次数
地址
/api/stats/demand
请求方法
GET
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_ids | array | 客户单位id,可以传多个 [1,2,3] |
否 | |
| start_time | string | 开始时间:2020-01-01 00:00:00 | 否,默认一周前 | |
| end_time | string | 结束时间:2021-01-01 00:00:00 | 否,默认现在 | |
| page | int | 第几页 | 否,默认1 | |
| count | int | 每页的个数 | 否,默认20 |
返回格式
{"status": 0,"data": [[{"organization_id": 1,"demand_count": 30,"m_recordTime": "2021-07-16 14:00:00"},{"organization_id": 2,"demand_count": 10,"m_recordTime": "2021-07-16 14:00:00"},{"organization_id": 4,"demand_count": 5,"m_recordTime": "2021-07-16 14:00:00"},{"organization_id": null,"demand_count": 2,"m_recordTime": "2021-07-23 09:13:55"}],{"total": 4,"page": 1,"count": 20}]}{status: 1,msg: '失败描述'}
跟进次数统计接口
功能
按照客户单位,查询一段时间内的跟进次数
地址
/api/stats/follow
请求方法
GET
参数说明
| 名称 | 类型 | 说明 | 备注 | 是否必须 |
|---|---|---|---|---|
| organization_ids | int | 客户单位id,可以传多个 [1,2,3] |
否 | |
| start_time | string | 开始时间:2020-01-01 00:00:00 | 否,默认一周前 | |
| end_time | string | 结束时间:2021-01-01 00:00:00 | 否,默认现在 |
返回格式
{"status": 0,"data": [[{"organization_id": 1,"follow_count": 2,"min_sign_time": "2021-07-23 15:00:00"}],{"total": 1,"page": 1,"count": 20}]}{status: 1,msg: '失败描述'}
