七天死亡(改为多天)
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>死亡分析接口</li>
</ul>
<h5>请求URL</h5>
<ul>
<li><code>http://xx.com/api/user/register</code></li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
</ul>
<h5>参数</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">number</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">批次名称</td>
<td>全部:sum</td>
</tr>
</tbody>
</table>
<h5>请求示例</h5>
<pre><code> {
"_EAS_BIZ_PATH_": "report.GetRptData",
"EAS_PATH": "report.GetRptData",
"serviceDeptId": "lxkAAAC0xK74nGYi",
"rptType": "weekDeath",
"userNum": "服务部付启剑",
"startDate":"2022-09-01",
"endDate":"2022-09-21",
"roles": [
"manager"
],
"number": "谭程王001"
}</code></pre>
<h5>返回示例</h5>
<pre><code> {
"message": "success",
"result": "0",
"data": [
{
"batch": "谭程王001",
"qty": "2",
"date": "2022-09-02",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "3",
"date": "2022-09-03",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "5",
"date": "2022-09-06",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "3",
"date": "2022-09-07",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "4",
"date": "2022-09-08",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "2",
"date": "2022-09-11",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "2",
"date": "2022-09-12",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "2",
"date": "2022-09-13",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "3",
"date": "2022-09-14",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "2",
"date": "2022-09-15",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "2",
"date": "2022-09-17",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "2",
"date": "2022-09-19",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "1",
"date": "2022-09-20",
"cust": "谭程王"
},
{
"batch": "谭程王001",
"qty": "1",
"date": "2022-09-21",
"cust": "谭程王"
}
]
}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">groupid</td>
<td style="text-align: left;">int</td>
<td>用户组id,1:超级管理员;2:普通用户</td>
</tr>
</tbody>
</table>
<h5>备注</h5>
<ul>
<li>更多返回错误代码请看首页的错误代码描述</li>
</ul>