> 提交時間搜索的傳入格式為時間區間,如要搜索2020年6月1日至2020年6月15日的數據,則傳入格式為:`2020-06-01 ~ 2020-06-15`,即起始和結束日期用`空格~空格`分隔
~~~[api]
get:/AdminApprove/my
int:role_id#審批角色ID
int:status#狀態
string:keywords#搜索詞
string:create_time#提交時間搜索(區間)
int:temporary#臨時通行證
int:limit=15#每頁顯示數量
int:page=1#頁碼
string:order_by=update_time,desc#排序方式
<<<
success
{
"code": 0,
"msg": "獲取成功",
"count": 5,
"data": [
{
"id": 8,
"approve_id": 4,
"user_id": 0,
"role_id": 9,
"reason": "東城中隊審核中",
"remark": "",
"status": "0",
"update_time": "2020-05-27 10:23:06",
"create_time": "2020-05-27 10:23:06",
"approve": {
"id": 4,
"number_plate": "粵F88888",
"number_type": "藍牌",
"driver_name": "張三",
"driver_idcard": "440202199910103344",
"driver_phone": "13888888888",
"remark": "有需要",
"item_type": "水泥",
"start": "城西大道(清城區)",
"end": 9,
"expiration_day": 7,
"status": "1",
"type": 1,
"destination": {
"id": 9,
"name": "東城中隊"
},
"vehicleType": {
"id": 1,
"name": "貨運臨時通行證辦理"
}
},
"status_text": "審核中"
}
]
}
~~~
## 字段說明
| 字段名 | 說明 |
| --- | --- |
| status_text | 我的審批狀態 |
| approve.status_text | 通行證審批狀態 |
## temporary參數
| 參數值 | 說明 |
| --- | --- |
| 0 | 查找長期通行證(通行天數大于3天) |
| 1 | 查找臨時通行證(通行天數小于等于3天) |
| `空` | 查找所有通行證(不限通行天數) |
## order_by參數
| 參數值 | 說明 |
| --- | --- |
| create_time,asc | 按通行證提交時間,從早到晚排序 |
| create_time,desc | 按通行證提交時間,從晚到早排序 |
| start_time,asc | 按開始通行時間,從早到晚排序 |
| start_time,desc | 按開始通行時間,從晚到早排序 |
| `空` | 按最后操作時間順序排序 |
## 我的審批狀態列表
| 字段名 | 說明 |
| --- | --- |
| 0 | 審核中 |
| 1 | 已通過 |
| 2 | 未通過 |
| 3 | 已過期 |