日记账收款类目列表
编号 : 001
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| page | int | Y | 1 | 页码 |
| pageSize | int | Y | 10 | 每页显示数 |
| id | int | N | 收款类目ID | |
| name | string | N | 类目名称,模糊查询 |
返回值
{
"status": 200,
"msg": "获取日记账收款类目列表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"data": [
{
"id": 1, // 收款类目ID
"name": "第三方平台提现", // 类目名称
"sort": 100, // 排序,越大越靠前
"created_at": "2026-06-02 10:00:00", // 添加时间
"updated_at": "2026-06-02 10:00:00", // 修改时间
"delete_time": null // 删除时间,未删除为null
}
]
}
}
备注
返回 data 为分页对象
添加日记账收款类目
编号 : 002
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| name | string | Y | 类目名称 | |
| sort | int | N | 0 | 排序,越大越靠前 |
返回值
{
"status": 200,
"msg": "添加日记账收款类目成功"
}
编辑日记账收款类目
编号 : 003
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| id | int | Y | 收款类目ID | |
| name | string | Y | 类目名称 | |
| sort | int | Y | 0 | 排序,越大越靠前 |
返回值
{
"status": 200,
"msg": "编辑日记账收款类目成功"
}
删除日记账收款类目
编号 : 004
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| id | int | Y | 收款类目ID |
返回值
{
"status": 200,
"msg": "删除日记账收款类目成功"
}
备注
删除为软删除,会写入delete_time
日记账付款类目列表
编号 : 005
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| page | int | Y | 1 | 页码 |
| pageSize | int | Y | 10 | 每页显示数 |
| id | int | N | 付款类目ID | |
| name | string | N | 类目名称,模糊查询 |
返回值
{
"status": 200,
"msg": "获取日记账付款类目列表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"data": [
{
"id": 1, // 付款类目ID
"name": "采购付款", // 类目名称
"sort": 100, // 排序,越大越靠前
"created_at": "2026-06-02 10:00:00", // 添加时间
"updated_at": "2026-06-02 10:00:00", // 修改时间
"delete_time": null // 删除时间,未删除为null
}
]
}
}
备注
返回 data 为分页对象
添加日记账付款类目
编号 : 006
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| name | string | Y | 类目名称 | |
| sort | int | N | 0 | 排序,越大越靠前 |
返回值
{
"status": 200,
"msg": "添加日记账付款类目成功"
}
编辑日记账付款类目
编号 : 007
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| id | int | Y | 付款类目ID | |
| name | string | Y | 类目名称 | |
| sort | int | Y | 0 | 排序,越大越靠前 |
返回值
{
"status": 200,
"msg": "编辑日记账付款类目成功"
}
删除日记账付款类目
编号 : 008
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| id | int | Y | 付款类目ID |
返回值
{
"status": 200,
"msg": "删除日记账付款类目成功"
}
备注
删除为软删除,会写入delete_time
获取公司开户行账号列表
编号 : 011
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| company_info_id | int | Y | 公司ID,对应bbc_company_info.id |
返回值
{
"status": 200,
"msg": "获取公司开户行账号列表成功",
"data": {
"company_info_id": 1, // 公司ID
"company_name": "南通智化慧仓科技有限公司", // 公司名称
"company_short_name": "飞驴", // 公司简称
"banks": [
{
"bank_name": "建设银行", // 开户银行
"cards": [
{
"id": 1, // 银行卡ID
"company_info_id": 1, // 公司ID
"name": "徐佳伟", // 公司/姓名
"bank_account": "12345685275225656", // 银行卡号
"bank_name": "建设银行", // 开户银行
"state": 1 // 状态:0=未启用,1=已启用
}
]
}
]
}
}
备注
根据公司ID返回开户行分组,以及每个开户行下的银行卡号列表
添加期初日记账
编号 : 012
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| opening_type | string | N | third_party_platform | 期初类型:third_party_platform=第三方平台,platform=平台,不传默认third_party_platform |
| company_info_id | int | Y | 公司ID,对应bbc_company_info.id | |
| company_info_bank_id | int | Y | 银行卡ID,对应bbc_company_info_bank.id,必须属于所选公司 | |
| opening_amount | decimal | Y | 期初金额,最多两位小数,可为0 |
返回值
{
"status": 200,
"msg": "添加期初日记账成功"
}
备注
公司名称、开户行、银行卡号、账户名会由服务端按ID查询并保存快照,前端不用传名称;opening_type不传默认third_party_platform
期初日记账列表
编号 : 013
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| page | int | Y | 1 | 页码 |
| pageSize | int | Y | 10 | 每页显示数 |
| opening_type | string | N | third_party_platform | 期初类型:third_party_platform=第三方平台,platform=平台,不传默认third_party_platform |
| id | int | N | 期初建账ID | |
| company_info_id | int | N | 公司ID | |
| company_info_bank_id | int | N | 银行卡ID | |
| bank_name | string | N | 开户银行,精确查询 | |
| account_info | string | N | 账户信息:公司名称/开户银行/账户名/银行卡号,模糊查询 | |
| created_at_start | string | N | 创建开始日期,格式Y-m-d | |
| created_at_end | string | N | 创建结束日期,格式Y-m-d |
返回值
{
"status": 200,
"msg": "获取期初日记账列表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"data": [
{
"id": 1, // 期初建账ID
"opening_type": "third_party_platform", // 期初类型:third_party_platform=第三方平台,platform=平台
"created_at": "2026-06-02 16:30:00", // 创建时间
"updated_at": "2026-06-02 16:30:00", // 修改时间
"company_info_id": 1, // 公司ID
"company_name": "南通智化慧仓科技有限公司", // 公司名称
"company_short_name": "飞驴", // 公司简称
"company_info_bank_id": 1, // 银行卡ID
"bank_name": "建设银行", // 开户银行
"bank_account": "12345685275225656", // 银行卡号
"account_name": "徐佳伟", // 公司/姓名
"opening_amount": "1234567.00" // 期初金额
}
]
}
}
备注
返回 data 为分页对象
获取日记账汇总表默认日期
编号 : 021
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| journal_type | string | N | third_party_platform | 日记账类型:third_party_platform=第三方平台,platform=平台,不传默认third_party_platform |
返回值
{
"status": 200,
"msg": "获取日记账汇总表默认日期成功",
"data": {
"default_date": "2026-06-24" // 默认日期:当前日记账类型下第一条有最新对账时间账号的transaction_date,没有则为空
}
}
备注
根据日记账类型获取前端日期筛选默认显示日期;只跟journal_type有关,不需要传company_name或bank_account;按该类型下期初账号列表id倒序,从上到下查找第一条有最新对账时间账号的transaction_date;没有任何对账时间则返回空字符串
日记账汇总表
编号 : 020
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|
返回值
{
"status": 200,
"msg": "获取日记账汇总表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"default_date": "2026-06-24", // 默认日期:当前列表从上到下第一条有最新对账时间账号的transaction_date,没有则为空
"data": [
{
"id": 1, // 期初建账ID
"opening_account_id": 1, // 期初建账ID,点击行查看明细时传给journalTransaction/detail
"opening_type": "third_party_platform", // 期初类型:third_party_platform=第三方平台,platform=平台
"journal_type": "third_party_platform", // 日记账类型:third_party_platform=第三方平台,platform=平台
"company_info_id": 1, // 公司ID
"company_name": "南通智化慧仓科技有限公司", // 公司名称
"company_short_name": "飞驴", // 公司简称
"company_info_bank_id": 1, // 银行卡ID
"bank_name": "建设银行", // 开户银行
"bank_account": "12345685275225656", // 账号信息/银行卡号
"account_name": "徐佳伟", // 公司/姓名
"opening_amount": "100000.00", // 期初金额
"date": "2026-06-10", // 查询日期:传date时返回传入日期,不传时返回默认昨天
"previous_balance": "120000.00", // 上期结余:传date时按date之前统计,不传date时按最新对账流水日期之前统计
"income_price": "30000.00", // 收入:传date时按date当天统计,不传date时按最新对账流水日期当天统计
"expense_price": "10000.00", // 支出:传date时按date当天统计,不传date时按最新对账流水日期当天统计
"balance_price": "140000.00", // 结余金额:上期结余+收入-支出
"reconciliation_status": "金额相符", // 对账状态:最新对账流水明细余额等于当前行结余金额时显示金额相符,否则为空
"reconciliation_time": "2026-06-25 10:30:00", // 对账时间:该银行卡最新一次有今日余额凭证流水的对账时间,没有则为空
"created_at": "2026-06-02 16:30:00", // 创建时间
"updated_at": "2026-06-02 16:30:00" // 修改时间
}
],
"summary": {
"previous_balance": "120000.00", // 上期结余合计
"income_price": "30000.00", // 收入合计
"expense_price": "10000.00", // 支出合计
"balance_price": "140000.00" // 结余金额合计
}
}
}
备注
日记账汇总表是基于bbc_journal_transaction的实时统计集合,不新建汇总业务数据表;date有值时金额字段按date统计:上期结余=期初金额+date之前收入-date之前支出,结余金额=上期结余+date收入-date支出;date为空时金额字段按该银行卡最新一次有今日余额凭证流水的transaction_date统计;date为空且没有对账流水时按默认昨天统计金额;收入/支出按明细借方/贷方字段合计;对账状态根据该银行卡最新一次有今日余额凭证流水的明细余额和汇总表结余金额判断,两者金额相等时返回reconciliation_status=金额相符;对账时间不受date参数影响,返回该银行卡最新一次有今日余额凭证流水的reconciliation_time;default_date返回当前列表从上到下第一条有最新对账时间账号的transaction_date,用于前端日期筛选默认显示,没有则为空
日记账汇总表
编号 : 020
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| page | int | Y | 1 | 页码 |
| pageSize | int | Y | 10 | 每页显示数 |
| journal_type | string | N | third_party_platform | 日记账类型:third_party_platform=第三方平台,platform=平台,不传默认third_party_platform |
| company_name | string | N | 公司名称,模糊查询 | |
| bank_account | string | N | 账号信息/银行卡号,模糊查询 | |
| date | string | N | 默认昨天 | 查询日期,格式Y-m-d,不传默认昨天 |
返回值
{
"status": 200,
"msg": "获取日记账汇总表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"data": [
{
"id": 1, // 期初建账ID
"opening_account_id": 1, // 期初建账ID,点击行查看明细时传给journalTransaction/detail
"opening_type": "third_party_platform", // 期初类型:third_party_platform=第三方平台,platform=平台
"journal_type": "third_party_platform", // 日记账类型:third_party_platform=第三方平台,platform=平台
"company_info_id": 1, // 公司ID
"company_name": "南通智化慧仓科技有限公司", // 公司名称
"company_short_name": "飞驴", // 公司简称
"company_info_bank_id": 1, // 银行卡ID
"bank_name": "建设银行", // 开户银行
"bank_account": "12345685275225656", // 账号信息/银行卡号
"account_name": "徐佳伟", // 公司/姓名
"opening_amount": "100000.00", // 期初金额
"date": "2026-06-10", // 查询日期,不传默认昨天
"previous_balance": "120000.00", // 上期结余:查询日期之前的结余
"income_price": "30000.00", // 收入:查询日期当天统一流水收入
"expense_price": "10000.00", // 支出:查询日期当天统一流水支出
"balance_price": "140000.00", // 结余金额:上期结余+收入-支出
"created_at": "2026-06-02 16:30:00", // 创建时间
"updated_at": "2026-06-02 16:30:00" // 修改时间
}
],
"summary": {
"previous_balance": "120000.00", // 上期结余合计
"income_price": "30000.00", // 收入合计
"expense_price": "10000.00", // 支出合计
"balance_price": "140000.00" // 结余金额合计
}
}
}
备注
日记账汇总表是基于bbc_journal_transaction的实时统计集合,不新建汇总业务数据表;上期结余=期初金额+查询日期之前收入-查询日期之前支出;结余金额=上期结余+查询日期收入-查询日期支出;收入/支出按明细借方/贷方字段合计
日记账统一提现单列表
编号 : 021
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| page | int | Y | 1 | 页码 |
| pageSize | int | Y | 10 | 每页显示数 |
| id | int | N | 统一提现单ID | |
| withdraw_type | string | N | third_party_platform | 提现单类型:third_party_platform=第三方平台提现单,platform=平台提现单 |
| account_info | string | N | 账户信息:公司名称/账号名称/银行卡号/开户行,模糊查询 | |
| company_info_id | int | N | 公司ID | |
| company_info_bank_id | int | N | 银行卡ID | |
| receipt_category_id | int | N | 收款类目ID | |
| withdraw_date_start | string | N | 提现开始日期,格式Y-m-d | |
| withdraw_date_end | string | N | 提现结束日期,格式Y-m-d |
返回值
{
"status": 200,
"msg": "获取日记账统一提现单列表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"data": [
{
"id": 1, // 统一提现单ID
"opening_account_id": 1, // 期初建账ID
"journal_type": "third_party_platform", // 日记账类型
"withdraw_type": "third_party_platform", // 提现单类型
"business_type": "withdraw", // 业务类型:withdraw=提现单
"direction": "income", // 收支方向:income=收入
"company_info_id": 1, // 公司ID
"company_name": "南通智化慧仓科技有限公司", // 公司名称
"company_info_bank_id": 1, // 银行卡ID
"withdraw_account_name": "徐佳伟", // 提现账号名称
"bank_account": "12345685275225656", // 银行卡号
"bank_name": "建设银行", // 开户行
"withdraw_date": "2026-06-10", // 提现日期
"withdraw_price": "3000.00", // 提现金额
"receipt_category_id": 1, // 收款类目ID
"receipt_category_name": "平台提现", // 收款类目
"summary": "第三方平台提现", // 摘要
"voucher_image": [
"https://hyj-img.oss-cn-shanghai.aliyuncs.com/demo/1.jpg" // 凭证图片
],
"created_at": "2026-06-10 10:00:00", // 创建时间
"updated_at": "2026-06-10 10:00:00" // 修改时间
}
]
}
}
备注
读取统一流水表bbc_journal_transaction,business_type=withdraw,direction=income
添加日记账统一提现单
编号 : 022
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| withdraw_type | string | N | third_party_platform | 提现单类型:third_party_platform=第三方平台提现单,platform=平台提现单,不传默认third_party_platform |
| company_info_id | int | Y | 公司ID,对应bbc_company_info.id | |
| company_info_bank_id | int | Y | 银行卡ID,对应bbc_company_info_bank.id,必须属于所选公司且已创建期初建账 | |
| withdraw_date | string | Y | 2026-06-02 | 提现日期,格式Y-m-d |
| withdraw_price | decimal | Y | 提现金额,最多两位小数 | |
| receipt_category_id | int | Y | 收款类目ID,对应bbc_journal_receipt_category.id | |
| summary | string | N | 摘要 | |
| voucher_image | array | N | [] | 凭证图片数组,使用oaApi/Login/upload接口上传后返回的图片地址数组 |
返回值
{
"status": 200,
"msg": "添加日记账统一提现单成功"
}
备注
写入统一流水表bbc_journal_transaction,business_type=withdraw,direction=income;公司、银行、类目名称由服务端保存快照
日记账统一其他收款单列表
编号 : 023
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| page | int | Y | 1 | 页码 |
| pageSize | int | Y | 10 | 每页显示数 |
| id | int | N | 统一其他收款单ID | |
| receipt_type | string | N | third_party_platform | 收款单类型:third_party_platform=第三方平台其他收款单,platform=平台其他收款单 |
| receipt_info | string | N | 其他收款信息:公司名称/公司简称,模糊查询 | |
| receipt_account | string | N | 收款账号:公司/姓名/银行卡号/开户行,模糊查询 | |
| account_info | string | N | 账户信息:公司名称/账号名称/银行卡号/开户行,模糊查询 | |
| company_info_id | int | N | 公司ID | |
| company_info_bank_id | int | N | 银行卡ID | |
| receipt_category_id | int | N | 收款类目ID | |
| receipt_date_start | string | N | 收款开始日期,格式Y-m-d | |
| receipt_date_end | string | N | 收款结束日期,格式Y-m-d | |
| created_at_start | string | N | 创建开始日期,格式Y-m-d | |
| created_at_end | string | N | 创建结束日期,格式Y-m-d |
返回值
{
"status": 200,
"msg": "获取日记账统一其他收款单列表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"data": [
{
"id": 2, // 统一其他收款单ID
"receipt_type": "third_party_platform", // 收款单类型
"business_type": "other_receipt", // 业务类型:other_receipt=其他收款单
"direction": "income", // 收支方向:income=收入
"receipt_info": "南通智化慧仓科技有限公司", // 其他收款信息
"receipt_account": "12345685275225656", // 收款账号
"receipt_date": "2026-06-10", // 收款日期
"receipt_price": "2000.00", // 收款金额
"receipt_category_name": "其他收款", // 收款类目
"voucher_image": [
"https://hyj-img.oss-cn-shanghai.aliyuncs.com/demo/2.jpg" // 凭证图片
]
}
]
}
}
备注
读取统一流水表bbc_journal_transaction,business_type=other_receipt,direction=income
添加日记账统一其他收款单
编号 : 024
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| receipt_type | string | N | third_party_platform | 收款单类型:third_party_platform=第三方平台其他收款单,platform=平台其他收款单,不传默认third_party_platform |
| company_info_id | int | Y | 公司ID,对应bbc_company_info.id | |
| company_info_bank_id | int | Y | 银行卡ID,对应bbc_company_info_bank.id,必须属于所选公司且已创建期初建账 | |
| receipt_date | string | Y | 2026-06-02 | 收款日期,格式Y-m-d |
| receipt_price | decimal | Y | 收款金额,最多两位小数 | |
| receipt_category_id | int | Y | 收款类目ID,对应bbc_journal_receipt_category.id | |
| summary | string | Y | 摘要,必填 | |
| voucher_image | array | N | [] | 凭证图片数组,使用oaApi/Login/upload接口上传后返回的图片地址数组 |
返回值
{
"status": 200,
"msg": "添加日记账统一其他收款单成功"
}
备注
写入统一流水表bbc_journal_transaction,business_type=other_receipt,direction=income
删除日记账统一其他收款单
编号 : 025
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| id | int | Y | 统一流水单据ID |
返回值
{
"status": 200,
"msg": "删除日记账统一其他收款单成功"
}
备注
删除为软删除,会写入delete_time
日记账统一其他付款单列表
编号 : 026
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| page | int | Y | 1 | 页码 |
| pageSize | int | Y | 10 | 每页显示数 |
| id | int | N | 统一其他付款单ID | |
| payment_type | string | N | third_party_platform | 付款单类型:third_party_platform=第三方平台其他付款单,platform=平台其他付款单 |
| payment_info | string | N | 其他付款信息:公司名称/公司简称,模糊查询 | |
| payment_account | string | N | 付款账号:公司/姓名/银行卡号/开户行,模糊查询 | |
| account_info | string | N | 账户信息:公司名称/账号名称/银行卡号/开户行,模糊查询 | |
| company_info_id | int | N | 公司ID | |
| company_info_bank_id | int | N | 银行卡ID | |
| payment_category_id | int | N | 付款类目ID | |
| payment_date_start | string | N | 付款开始日期,格式Y-m-d | |
| payment_date_end | string | N | 付款结束日期,格式Y-m-d | |
| created_at_start | string | N | 创建开始日期,格式Y-m-d | |
| created_at_end | string | N | 创建结束日期,格式Y-m-d |
返回值
{
"status": 200,
"msg": "获取日记账统一其他付款单列表成功",
"data": {
"total": 1, // 总条数
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"data": [
{
"id": 3, // 统一其他付款单ID
"payment_type": "third_party_platform", // 付款单类型
"business_type": "other_payment", // 业务类型:other_payment=其他付款单
"direction": "expense", // 收支方向:expense=支出
"payment_info": "南通智化慧仓科技有限公司", // 其他付款信息
"payment_account": "12345685275225656", // 付款账号
"payment_date": "2026-06-10", // 付款日期
"payment_price": "1000.00", // 付款金额
"payment_category_name": "其他付款", // 付款类目
"voucher_image": [
"https://hyj-img.oss-cn-shanghai.aliyuncs.com/demo/3.jpg" // 凭证图片
]
}
]
}
}
备注
读取统一流水表bbc_journal_transaction,business_type=other_payment,direction=expense
添加日记账统一其他付款单
编号 : 027
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| payment_type | string | N | third_party_platform | 付款单类型:third_party_platform=第三方平台其他付款单,platform=平台其他付款单,不传默认third_party_platform |
| company_info_id | int | Y | 公司ID,对应bbc_company_info.id | |
| company_info_bank_id | int | Y | 银行卡ID,对应bbc_company_info_bank.id,必须属于所选公司且已创建期初建账 | |
| payment_date | string | Y | 2026-06-02 | 付款日期,格式Y-m-d |
| payment_price | decimal | Y | 付款金额,最多两位小数 | |
| payment_category_id | int | Y | 付款类目ID,对应bbc_journal_payment_category.id | |
| summary | string | Y | 摘要,必填 | |
| voucher_image | array | N | [] | 凭证图片数组,使用oaApi/Login/upload接口上传后返回的图片地址数组 |
返回值
{
"status": 200,
"msg": "添加日记账统一其他付款单成功"
}
备注
写入统一流水表bbc_journal_transaction,business_type=other_payment,direction=expense
删除日记账统一其他付款单
编号 : 028
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| id | int | Y | 统一流水单据ID |
返回值
{
"status": 200,
"msg": "删除日记账统一其他付款单成功"
}
备注
删除为软删除,会写入delete_time
日记账银行卡流水明细
编号 : 029
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| opening_account_id | int | Y | 期初建账ID,对应日记账汇总表行内opening_account_id | |
| page | int | N | 1 | 页码 |
| pageSize | int | N | 10 | 每页显示数 |
| date_start | string | N | 起始日期,格式Y-m-d,不传时可配合date_range使用 | |
| date_end | string | N | 截止日期,格式Y-m-d,不传时可配合date_range使用 | |
| date_range | string | N | 日期快捷筛选:lately7=近一周,lately30=近一月,lately90=近三月 | |
| direction | string | N | all | 快捷筛选:all=全部,income=借方(+),expense=贷方(-),不传默认all |
返回值
{
"status": 200,
"msg": "获取日记账银行卡流水明细成功",
"data": {
"opening_account_id": 1, // 期初建账ID
"journal_type": "third_party_platform", // 日记账类型
"company_info_id": 1, // 公司ID
"company_name": "南通智化慧仓科技有限公司", // 公司名称
"company_info_bank_id": 1, // 银行卡ID
"bank_name": "建设银行", // 开户行
"bank_account": "12345685275225656", // 卡号
"account_name": "徐佳伟", // 公司/姓名
"opening_amount": "100000.00", // 期初建账金额
"total": 2, // 明细总条数,不包含期初行
"per_page": 10, // 每页条数
"current_page": 1, // 当前页
"last_page": 1, // 最后一页
"date_start": "2026-06-01", // 起始日期
"date_end": "2026-06-10", // 截止日期
"date_range": "lately7", // 日期快捷筛选:lately7=近一周,lately30=近一月,lately90=近三月
"direction": "all", // 快捷筛选:all=全部,income=借方(+),expense=贷方(-)
"data": [
{
"row_type": "opening", // 行类型:opening=期初建账行,transaction=流水行
"id": 0, // 流水ID,期初行固定为0
"date": "2026-06-01", // 日期,未传起始日期时为空
"category_name": "期初建账", // 类目
"summary": "筛选期初余额", // 摘要,未传起始日期时为期初余额
"debit_price": "0.00", // 借方(+)
"credit_price": "0.00", // 贷方(-)
"balance_price": "100000.00", // 余额
"today_balance_voucher": "" // 今日余额凭证,期初行为空
},
{
"row_type": "transaction", // 行类型
"id": 1, // 统一流水ID
"date": "2026-06-10", // 日期
"category_name": "平台提现", // 类目
"summary": "第三方平台提现", // 摘要
"debit_price": "3000.00", // 借方(+)
"credit_price": "0.00", // 贷方(-)
"balance_price": "103000.00", // 余额
"today_balance_voucher": "https://img.hyj111.cn/today_balance.jpg" // 今日余额凭证
}
],
"summary": {
"income_price": "3000.00", // 借方合计
"expense_price": "0.00", // 贷方合计
"balance_price": "103000.00" // 当前余额
}
}
}
备注
点击日记账汇总表行进入明细页使用;第一行固定为期初/筛选期初余额,从第二行开始为分页后的bbc_journal_transaction流水;total为明细总条数且不包含期初行;date_range支持lately7=近一周,lately30=近一月,lately90=近三月;date_start/date_end手动日期优先;direction筛选全部/借方/贷方
日记账银行卡流水明细导出Excel
编号 : 030
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| opening_account_id | int | Y | 期初建账ID,对应日记账汇总表行内opening_account_id | |
| date_start | string | N | 起始日期,格式Y-m-d,不传时可配合date_range使用 | |
| date_end | string | N | 截止日期,格式Y-m-d,不传时可配合date_range使用 | |
| date_range | string | N | 日期快捷筛选:lately7=近一周,lately30=近一月,lately90=近三月 | |
| direction | string | N | all | 快捷筛选:all=全部,income=借方(+),expense=贷方(-),不传默认all |
返回值
返回xlsx文件流,文件列:日期 // 明细日期;类目 // 期初建账/收款类目/付款类目;摘要 // 摘要;借方(+) // 收入金额;贷方(-) // 支出金额;余额 // 当前余额。
备注
根据日记账银行卡流水明细列表相同查询条件导出Excel;读取bbc_journal_transaction统一流水;第一行导出期初/筛选期初余额,后续导出流水明细;date_range支持lately7=近一周,lately30=近一月,lately90=近三月;date_start/date_end手动日期优先;direction筛选全部/借方/贷方
确认日记账银行卡今日余额对账
编号 : 031
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| opening_account_id | int | Y | 期初建账ID,对应日记账汇总表行内opening_account_id | |
| today_balance_voucher | string | Y | 今日余额凭证,使用oaApi/Login/upload接口上传后返回的图片地址或凭证文本 | |
| date | string | N | 默认今天 | 对账日期,格式Y-m-d,不传默认今天 |
返回值
{
"status": 200,
"msg": "确认日记账银行卡今日余额对账成功"
}
备注
点击银行卡流水明细导出按钮后的对账按钮使用;写入该银行卡账号对应日期最后一条流水明细的today_balance_voucher;date不传默认今天
银行对账日志
编号 : 031
请求参数
| 参数名 | 参数类型 | 必传 | 缺省值 | 描述 |
|---|---|---|---|---|
| platform_type | string | N | platform | 平台类型:platform=平台,third_party=第三方,不传默认platform |
| date | string | N | 2026-06-15 | 对账日期,格式Y-m-d,例如2026-06-15,不传默认当天 |
返回值
{
"status": 200,
"msg": "获取银行对账日志成功",
"data": {
"date": "2026-06-15", // 对账日期
"platform_type": "platform", // 平台类型:platform=平台,third_party=第三方
"journal_type": "platform", // 日记账类型:platform=平台,third_party_platform=第三方平台
"data": [
{
"company_info_id": 1, // 公司ID
"company_name": "南通智化慧仓科技有限公司", // 公司名称
"company_short_name": "飞驴", // 公司简称
"platform_type": "platform", // 公司平台类型
"date": "2026-06-15", // 对账日期
"balance_price": "6911.00", // 公司下银行卡结余合计
"banks": [
{
"opening_account_id": 5, // 期初建账ID
"opening_type": "platform", // 期初类型
"journal_type": "platform", // 日记账类型
"company_info_bank_id": 8, // 银行卡ID
"bank_name": "江苏银行", // 开户银行
"bank_account": "123456", // 银行卡号
"account_name": "徐佳伟", // 公司/姓名
"opening_amount": "4089.15", // 期初金额
"income_price": "0.00", // 对账日期及之前收入合计
"expense_price": "3556.89", // 对账日期及之前支出合计
"balance_price": "532.26" // 银行卡结余金额
},
{
"opening_account_id": 6, // 期初建账ID
"opening_type": "platform", // 期初类型
"journal_type": "platform", // 日记账类型
"company_info_bank_id": 9, // 银行卡ID
"bank_name": "农业银行", // 开户银行
"bank_account": "654321", // 银行卡号
"account_name": "徐佳伟", // 公司/姓名
"opening_amount": "6378.74", // 期初金额
"income_price": "0.00", // 对账日期及之前收入合计
"expense_price": "0.00", // 对账日期及之前支出合计
"balance_price": "6378.74" // 银行卡结余金额
}
]
}
],
"summary": {
"company_count": 1, // 公司数量
"bank_count": 2, // 银行卡数量
"balance_price": "6911.00" // 全部公司银行卡结余合计
}
}
}
备注
根据 platform_type 查询 bbc_company_info 下的公司;platform_type=platform 对应日记账 opening_type=platform,platform_type=third_party 对应 opening_type=third_party_platform;结余金额=期初金额+对账日期及之前收入-对账日期及之前支出;返回按公司折叠,每个公司下 banks 为各银行卡结余列表。