POST
/distributeAmount/queryDistributeBatchPage管理后台批次列表分页查询
结算与分配 / 金额
基本信息
- 接口状态前端在用
- 接口URLPOST
https://dscp-dev.hn12301.net/manage-api/distributeAmount/queryDistributeBatchPage - 请求方式
POST - Content-Type
application/json - 暴露渠道管理后台 前缀
/manage-api - 名称来源源码注释
- 调用方已确认在用 · 管理后台(1 个前端)
- 需求上下文
- 维护人 / 最后改动jacobxu666 2026-06-23
- 读写数据表
distribute_batch反查该表全部接口 → - 控制器
com.jxxx.dscp.api.controller.distribute.DistributeAmountController#queryDistributeBatchPage - 源码位置
jxxx-dscp/dscp-service-business/src/main/java/com/jxxx/dscp/api/controller/distribute/DistributeAmountController.java:128 - 判定依据
请求参数
Header 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无(渠道统一鉴权头见《认证方式》) | ||||
Query 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
路径参数及说明
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| 无 | ||||
Body 请求参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| pageNo | … | 否 | Integer | 页码 |
| pageSize | … | 否 | Integer | 每页条数 |
| year | … | 否 | Integer | → distribute_batch.year |
| month | … | 否 | Integer | → distribute_batch.month |
| quarter | … | 否 | Integer | → distribute_batch.quarter |
| cardModelName | … | 否 | String | → distribute_batch.card_model_name |
认证方式
响应参数
| 参数名 | 参数值 | 是否必填 | 参数类型 | 描述说明 |
|---|---|---|---|---|
| list | … | 否 | List<T><DistributeBatch> | 分页数据集合(元素结构见下一行) |
| id | … | 否 | Long | → distribute_batch.id |
| batchNo | … | 否 | String | 批次编号 → distribute_batch.batch_no |
| year | … | 否 | Integer | 年份 → distribute_batch.year |
| month | … | 否 | Integer | 月份 → distribute_batch.month |
| quarter | … | 否 | Integer | 季度 → distribute_batch.quarter |
| cardModelId | … | 否 | Long | 卡种ID → distribute_batch.card_model_id |
| cardModelName | … | 否 | String | 卡种名称 → distribute_batch.card_model_name |
| cardModelPrice | … | 否 | Integer | 卡种售价(分) → distribute_batch.card_model_price |
| validUserCount | … | 否 | Integer | 当月有效用户数 → distribute_batch.valid_user_count |
| totalDistributeAmount | … | 否 | Long | 该卡种当月可分配总额(分) → distribute_batch.total_distribute_amount |
| parkCount | … | 否 | Integer | 参与分配的景区数量 → distribute_batch.park_count |
| status | … | 否 | Integer | 状态:1已计算, 2已确认, 3已导出 → distribute_batch.status |
| execTime | … | 否 | Date | 执行时间 → distribute_batch.exec_time |
| execBy | … | 否 | Long | 执行人 → distribute_batch.exec_by |
| ratio | … | 否 | Integer | 分润比例(百分比整数,如 80 表示 80%) → distribute_batch.ratio |
| calcMode | … | 否 | String | 计算模式:ratio(按比例)/ fixed(固定金额),默认 ratio → distribute_batch.calc_mode |
| fixedAmount | … | 否 | Long | 固定金额(单位:分),calcMode 为 fixed 时使用 → distribute_batch.fixed_amount |
| isDeleted | … | 否 | Boolean | 逻辑删除 → distribute_batch.is_deleted |
| createdBy | … | 否 | Long | 创建人 → distribute_batch.created_by |
| createdTime | … | 否 | Date | 创建时间 → distribute_batch.created_time |
| updatedBy | … | 否 | Long | 更新人 → distribute_batch.updated_by |
| updatedTime | … | 否 | Date | 更新时间 → distribute_batch.updated_time |
| total | … | 否 | Long | 数据总数 |
响应示例
成功响应示例
{
"errcode": 0,
"errmsg": "",
"data": {
"list": "[]",
"id": "1",
"batchNo": "\"string\"",
"year": "1",
"month": "1",
"quarter": "1",
"cardModelId": "1",
"cardModelName": "\"string\"",
"cardModelPrice": "1",
"validUserCount": "1",
"totalDistributeAmount": "1",
"parkCount": "1"
}
}失败响应示例
{
"data": null,
"可能返回": [
{
"errcode": "99999",
"errmsg": "服务内部错误"
}
]
}附录 · 实现细节
调用链 / 数据表 / 调用点证据 / 源码注释 / 逻辑摘要
涉及数据表:distribute_batch 反查全部引用接口 →
- DistributeAmountController#queryDistributeBatchPage
- BeanUtils.map → DistributeBatchQuery
- BeanUtils.map → PageParam
其它依赖:DistributeBatchService.applyWrapper
逻辑摘要:调用 applyWrapper(distributeBatchService.applyWrapper);查询详情(distributeBatchService.getMapper);入参与返回值经 BeanUtils 做对象/分页映射
旧站环境备注:pro:(仓库 .env.pro 指向 uat;生产域名未确认,此处沿用 uat 主机示意)
调用点证据
dscp-html-manage/src/api/card/distributeAmount/index.ts:12管理后台 · request
可能抛出的业务码:99999 服务内部错误 错误码字典 →