录音质检
<h3><strong>简要描述:</strong></h3>
<h3>- 条件查询接口</h3>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://xx.com/admin/customer_cdr/grid</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td>项目编号</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>int</td>
<td>客户状态 ,默认-1</td>
</tr>
<tr>
<td>start_stamp</td>
<td>是</td>
<td>date</td>
<td>开始日期</td>
</tr>
<tr>
<td>end_stamp</td>
<td>是</td>
<td>date</td>
<td>结束日期</td>
</tr>
<tr>
<td>telephone</td>
<td>是</td>
<td>string</td>
<td>客户号码</td>
</tr>
<tr>
<td>extno</td>
<td>是</td>
<td>string</td>
<td>坐席工号</td>
</tr>
<tr>
<td>gt_billsec</td>
<td>是</td>
<td>int</td>
<td>应答时长</td>
</tr>
<tr>
<td>task_id</td>
<td>是</td>
<td>int</td>
<td>任务编号 ,默认0</td>
</tr>
<tr>
<td>inspection</td>
<td>是</td>
<td>int</td>
<td>质检,默认值-1</td>
</tr>
<tr>
<td>page</td>
<td>是</td>
<td>int</td>
<td>1</td>
</tr>
<tr>
<td>limit</td>
<td>是</td>
<td>int</td>
<td>10</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [{
&quot;admin_id&quot;: 1,
&quot;answer_stamp&quot;: &quot;&quot;,
&quot;digits&quot;: &quot;&quot;,
&quot;end_stamp&quot;: &quot;2021-08-30 11:55:46&quot;,
&quot;extno&quot;: &quot;1003&quot;,
&quot;group&quot;: &quot;default&quot;,
&quot;info_uuid&quot;: &quot;beeb8dda-87fb-4f7d-aa60-a4dee98e2e08&quot;,
&quot;inspection&quot;: 0,
&quot;project_id&quot;: 1,
&quot;record_file&quot;: &quot;&quot;,
&quot;recovered&quot;: 0,
&quot;satisfaction&quot;: &quot;&quot;,
&quot;status&quot;: 0,
&quot;task_id&quot;: 0,
&quot;uuid&quot;: &quot;17c3c262-7c48-40eb-b610-ef4c21bba363&quot;,
&quot;agentName&quot;: &quot;1003&quot;,
&quot;statusName&quot;: &quot;未接听&quot;,
&quot;inspectionName&quot;: &quot;未质检&quot;
}],
&quot;count&quot;: 1
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>telephone</td>
<td>int</td>
<td>客户号码</td>
</tr>
<tr>
<td>direction</td>
<td>string</td>
<td>呼叫类型</td>
</tr>
<tr>
<td>start_stamp</td>
<td>date</td>
<td>开始时间</td>
</tr>
<tr>
<td>duration</td>
<td>int</td>
<td>总时长(秒)</td>
</tr>
<tr>
<td>billsec</td>
<td>int</td>
<td>应答时长(秒)</td>
</tr>
<tr>
<td>consume</td>
<td>string</td>
<td>金额(元)</td>
</tr>
<tr>
<td>hangup_cause</td>
<td>string</td>
<td>挂断原因</td>
</tr>
<tr>
<td>hangup_disposition</td>
<td>string</td>
<td>挂断处理</td>
</tr>
<tr>
<td>admin_id</td>
<td>int</td>
<td>用户编号</td>
</tr>
<tr>
<td>answer_stamp</td>
<td>string</td>
<td>应答时间</td>
</tr>
<tr>
<td>digits</td>
<td>string</td>
<td>按键</td>
</tr>
<tr>
<td>end_stamp</td>
<td>string</td>
<td>结束时间</td>
</tr>
<tr>
<td>extno</td>
<td>string</td>
<td>工号</td>
</tr>
<tr>
<td>group</td>
<td>string</td>
<td>标签</td>
</tr>
<tr>
<td>info_uuid</td>
<td>string</td>
<td>用户信息编号</td>
</tr>
<tr>
<td>inspection</td>
<td>int</td>
<td>质检状态</td>
</tr>
<tr>
<td>inspectionName</td>
<td>string</td>
<td>质检名称</td>
</tr>
<tr>
<td>project_id</td>
<td>string</td>
<td>项目编号</td>
</tr>
<tr>
<td>record_file</td>
<td>string</td>
<td>录音名称</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>客户状态值</td>
</tr>
<tr>
<td>statusName</td>
<td>string</td>
<td>客户状态名称</td>
</tr>
<tr>
<td>task_id</td>
<td>string</td>
<td>任务编号</td>
</tr>
<tr>
<td>uuid</td>
<td>string</td>
<td>话单编号</td>
</tr>
<tr>
<td>agentName</td>
<td>string</td>
<td>坐席名称</td>
</tr>
</tbody>
</table>
<h3><strong>简要描述:</strong></h3>
<h1>- 导出客户信息接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/cdr/download_info</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>GET</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td>项目编号</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>int</td>
<td>客户状态 ,默认-1</td>
</tr>
<tr>
<td>start_stamp</td>
<td>是</td>
<td>date</td>
<td>开始日期</td>
</tr>
<tr>
<td>end_stamp</td>
<td>是</td>
<td>date</td>
<td>结束日期</td>
</tr>
<tr>
<td>telephone</td>
<td>是</td>
<td>string</td>
<td>客户号码</td>
</tr>
<tr>
<td>extno</td>
<td>是</td>
<td>string</td>
<td>坐席工号</td>
</tr>
<tr>
<td>gt_billsec</td>
<td>是</td>
<td>int</td>
<td>应答时长</td>
</tr>
<tr>
<td>task_id</td>
<td>是</td>
<td>int</td>
<td>任务编号 ,默认0</td>
</tr>
<tr>
<td>inspection</td>
<td>是</td>
<td>int</td>
<td>质检,默认值-1</td>
</tr>
</tbody>
</table>
<h3><strong>简要描述:</strong></h3>
<h1>- 批量下载录音接口,ZIP压缩包</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/cdr/download_cdr</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td>项目编号</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>int</td>
<td>客户状态 ,默认-1</td>
</tr>
<tr>
<td>start_stamp</td>
<td>是</td>
<td>date</td>
<td>开始日期</td>
</tr>
<tr>
<td>end_stamp</td>
<td>是</td>
<td>date</td>
<td>结束日期</td>
</tr>
<tr>
<td>telephone</td>
<td>是</td>
<td>string</td>
<td>客户号码</td>
</tr>
<tr>
<td>extno</td>
<td>是</td>
<td>string</td>
<td>坐席工号</td>
</tr>
<tr>
<td>gt_billsec</td>
<td>是</td>
<td>int</td>
<td>应答时长</td>
</tr>
<tr>
<td>task_id</td>
<td>是</td>
<td>int</td>
<td>任务编号 ,默认0</td>
</tr>
<tr>
<td>inspection</td>
<td>是</td>
<td>int</td>
<td>质检,默认值-1</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1 录音数量
}</code></pre>
<hr />
<h1>质检:</h1>
<h3><strong>简要描述:</strong></h3>
<h2>- 质检 :获取crm字段,生成表单</h2>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/crm_field/listProjectFields</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>项目id</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: [{
&quot;id&quot;: 1,
&quot;issue&quot;: &quot;&quot;,
&quot;field_name&quot;: &quot;客户姓名&quot;,
&quot;field_type&quot;: 1,
&quot;input_type&quot;: 1,
&quot;is_display&quot;: 1,
&quot;is_edit&quot;: 1,
&quot;is_empty&quot;: 1,
&quot;is_search&quot;: 0,
&quot;jump&quot;: 1,
&quot;field_json&quot;: null,
&quot;status&quot;: 1,
&quot;crm_id&quot;: 1
}]
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>field_json</td>
<td>string</td>
<td>表单数据,单选框,多选框的值</td>
</tr>
<tr>
<td>field_name</td>
<td>int</td>
<td>字段名称</td>
</tr>
<tr>
<td>field_type</td>
<td>int</td>
<td>预留字段</td>
</tr>
<tr>
<td>id</td>
<td>int</td>
<td>编号</td>
</tr>
<tr>
<td>input_type</td>
<td>string</td>
<td>字段类型:1 文本框,2 单选下拉框,3 多选下拉框,4 富文本框</td>
</tr>
<tr>
<td>is_display</td>
<td>int</td>
<td>是否显示 1 是,0 否</td>
</tr>
<tr>
<td>is_edit</td>
<td>int</td>
<td>是否允许修改 1 是,0 否</td>
</tr>
<tr>
<td>is_search</td>
<td>int</td>
<td>是否高级查询 1 是,0 否</td>
</tr>
<tr>
<td>is_empty</td>
<td>int</td>
<td>预留字段</td>
</tr>
<tr>
<td>issue</td>
<td>string</td>
<td>话术(问卷)内容</td>
</tr>
<tr>
<td>jump</td>
<td>int</td>
<td>问卷跳转,跳转到相同crm字段id的问卷</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>状态,预留字段</td>
</tr>
</tbody>
</table>
<h3><strong>简要描述:</strong></h3>
<h1>- 质检 :获取crm字段生成表单的值,就是客户信息</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/customer_cdr/getInfoByUUID</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>是</td>
<td>String</td>
<td></td>
<td>客户信息uuid</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: {
&quot;project_id&quot;: 1,
&quot;info_uuid&quot;: &quot;a009cf46-0267-11ec-a87b-fa163e5db268&quot;,
&quot;name&quot;: &quot;&quot;,
&quot;telephone&quot;: &quot;13001322835&quot;,
&quot;record_file&quot;: &quot;record/1/20210830/01cc588a-6de1-4099-9202-01a2c7f08e21.wav&quot;,
&quot;fields&quot;: &quot;{}&quot;,
&quot;status&quot;: 3,
&quot;inspection&quot;: 0
}
}</code></pre>
<p><strong>返回参数说明</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>fields</td>
<td>string</td>
<td>用户信息,字段:值</td>
</tr>
<tr>
<td>record_file</td>
<td>string</td>
<td>录音地址</td>
</tr>
<tr>
<td>status</td>
<td>int</td>
<td>客户状态</td>
</tr>
<tr>
<td>telephone</td>
<td>string</td>
<td>客户号码</td>
</tr>
<tr>
<td>name</td>
<td>string</td>
<td>客户名称</td>
</tr>
<tr>
<td>info_uuid</td>
<td>string</td>
<td>客户信息UUID</td>
</tr>
<tr>
<td>inspection</td>
<td>int</td>
<td>质检状态</td>
</tr>
</tbody>
</table>
<h3><strong>简要描述:</strong></h3>
<h1>- 质检 : 提交 接口, 提交客户状态是单独的接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/customer_info/save</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>是</td>
<td>uuid</td>
<td></td>
<td>uuid编号,客户信息uuid(info_uuid)</td>
</tr>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>项目编号</td>
</tr>
<tr>
<td>fields</td>
<td>是</td>
<td>string</td>
<td>{“客户姓名”:”zs”}</td>
<td>表单数据</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1
}</code></pre>
<h3><strong>简要描述:</strong></h3>
<h1>- 质检 : 提交客户状态 接口</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/customer_cdr/editStatus</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>是</td>
<td>uuid</td>
<td></td>
<td>话单uuid(cdr_uuid)</td>
</tr>
<tr>
<td>status</td>
<td>是</td>
<td>int</td>
<td></td>
<td>客户状态</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;&quot;,
&quot;data&quot;: 1
}</code></pre>
<h3><strong>简要描述:</strong></h3>
<h1>- 质检 : 质检状态 提交</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/customer_cdr/quality</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>uuid</td>
<td>是</td>
<td>uuid</td>
<td></td>
<td>话单uuid编号</td>
</tr>
<tr>
<td>inspection</td>
<td>是</td>
<td>int</td>
<td></td>
<td>录音质检状态</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;code&quot;: 0,
&quot;msg&quot;: &quot;操作成功&quot;,
&quot;data&quot;: 1
}</code></pre>
<h3><strong>简要描述:</strong></h3>
<h1>- 质检 : 质检状态下拉框</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../admin/crm/listProjectInsp</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>
<p><strong>参数:</strong></p>
<table>
<thead>
<tr>
<th>参数名</th>
<th>必选</th>
<th>类型</th>
<th>参数</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td>project_id</td>
<td>是</td>
<td>int</td>
<td></td>
<td>项目编号</td>
</tr>
</tbody>
</table>
<p><strong>返回示例</strong></p>
<pre><code> {
&quot;msg&quot;: &quot;success&quot;,
&quot;code&quot;: 0,
&quot;data&quot;: &quot;[\&quot;未质检\&quot;, \&quot;质检合格\&quot;, \&quot;质检不合格\&quot;]&quot; ,说明:提交时,值为下标,这里返回的是名称
}</code></pre>
<h3><strong>简要描述:</strong></h3>
<h1>- 下载录音 ,单个</h1>
<p><strong>请求URL:</strong></p>
<ul>
<li><code>http://../record/download?access_token=xxxxxxxx&amp;uuid=xxxxxxxxxx</code></li>
</ul>
<p><strong>请求方式:</strong></p>
<ul>
<li>POST</li>
</ul>