cs.fin.report.profit
利润归集汇总(客户/销售/航线/月度,不含税 net)。
- 请求路由:
cs.fin.report.profit- 交互模型:
Request Response- 访问限制: 无
请求
RSocket.rr({
"route" : "cs.fin.report.profit",
"args" : {
"dim" : "CUSTOMER",
"from" : "2026-04-01T00:00:00Z",
"to" : "2026-06-30T23:59:59Z"
}
});
请求参数
| 名称 | 类型 | 必须 | 说明 |
|---|---|---|---|
dim | String | 否 | 利润归集维度,默认 CUSTOMER |
from | String | 否 | 起始时间(含),为空时不限左边界 |
to | String | 否 | 截止时间(含),为空时不限右边界 |
返回
利润核算报表(分组明细 + 期间合计)
{
"buckets" : [
{
"key" : "CUST10086",
"label" : "深圳市鹏海国际货运",
"revenueBase" : 10660.38,
"costBase" : 8000.0,
"profitBase" : 2660.38,
"margin" : 0.2496
},
{
"key" : "CUST20011",
"label" : "广州环宇供应链",
"revenueBase" : 16113.21,
"costBase" : 12500.0,
"profitBase" : 3613.21,
"margin" : 0.2243
}
],
"total" : {
"key" : "TOTAL",
"label" : "合计",
"revenueBase" : 26773.59,
"costBase" : 20500.0,
"profitBase" : 6273.59,
"margin" : 0.2343
}
}
返回属性
| 名称 | 类型 | 说明 |
|---|---|---|
buckets | Object[] | 按维度归集的分组(按毛利降序) |
buckets.[].key | String | 分组键(客户 id / 销售 id / 航线 / 月份;合计行为 TOTAL) |
buckets.[].label | String | 分组名称(客户名称等,可空时同 key) |
buckets.[].revenueBase | Number | 营收(不含税,本位币) |
buckets.[].costBase | Number | 成本(不含税,本位币) |
buckets.[].profitBase | Number | 毛利(不含税,本位币)= 营收 − 成本 |
buckets.[].margin | Number | 毛利率 = 毛利 / 营收(营收为 0 时取 0) |
buckets.[].jobCount | Object | 单票数 |
total | Object | 期间合计(key=TOTAL) |
total.key | String | 分组键(客户 id / 销售 id / 航线 / 月份;合计行为 TOTAL) |
total.label | String | 分组名称(客户名称等,可空时同 key) |
total.revenueBase | Number | 营收(不含税,本位币) |
total.costBase | Number | 成本(不含税,本位币) |
total.profitBase | Number | 毛利(不含税,本位币)= 营收 − 成本 |
total.margin | Number | 毛利率 = 毛利 / 营收(营收为 0 时取 0) |
total.jobCount | Object | 单票数 |