子账号某天明细
查看某个子账号某一天收了哪些书、多少钱,弹窗展示用。
| 请求方式 | GET/POST |
| 接口路径 | /api/offlineReceive/batchDayDetail |
| Content-Type | - |
| 鉴权 | X-Nideshop-Token |
请求参数
| 参数 | 类型 | 必填 | 位置 |
batchDate | LocalDate | 是 | URL 参数 |
subUserId | Long | 是 | URL 参数 |
curl 调用
curl -s 'https://www.8shu8.com/api/offlineReceive/batchDayDetail?batchDate=xxx&subUserId=1' \
-H 'X-Nideshop-Token: YOUR_LOGIN_TOKEN'
响应示例
{
"code": 200,
"message": "操作成功",
"success": true,
"data": {
"batchDate": "string",
"subUserId": 1,
"subUserName": "string",
"batchCount": 1,
"totalQuantity": 1,
"totalVerifiedQuantity": 1,
"totalAmount": 0.0,
"totalPayableAmount": 0.0,
"batches": [
{
"subUserName": "...",
"payableAmount": "..."
}
],
"items": [
{
"id": "...",
"batchNo": "...",
"batchAddTime": "...",
"isbn": "...",
"title": "...",
"imageUrl": "...",
"marketPrice": "...",
"lastUpdateTime": "...",
"quantity": "...",
"verifiedQuantity": "...",
"unitRecyclePrice": "...",
"lineAmount": "...",
"payableAmount": "..."
}
]
}
}
返回字段(data)
| 字段 | 类型 | 说明 |
batchDate | LocalDate | - |
subUserId | Long | - |
subUserName | String | - |
batchCount | Integer | - |
totalQuantity | Integer | - |
totalVerifiedQuantity | Integer | - |
totalAmount | BigDecimal | - |
totalPayableAmount | BigDecimal | 应付:按实收核验数量 × 单价合计 |
batches | 对象数组 | - |
batches[].subUserName | String | - |
batches[].payableAmount | 对象 | 应付:该批次实收核验 × 单价合计 |
items | 对象数组 | - |
items[].id | Long | - |
items[].batchNo | String | - |
items[].batchAddTime | LocalDateTime | - |
items[].isbn | String | - |
items[].title | String | - |
items[].imageUrl | String | - |
items[].marketPrice | BigDecimal | 市场价(业务数据.avg_price) |
items[].lastUpdateTime | LocalDateTime | - |
items[].quantity | Integer | - |
items[].verifiedQuantity | Integer | - |
items[].unitRecyclePrice | BigDecimal | - |
items[].lineAmount | BigDecimal | - |
items[].payableAmount | BigDecimal | 应付:实收核验数量 × 单价(按行合计后聚合) |