智简魔方文档

本年销售详情

方法概览

项目内容
文档类型PHP 类方法
方法标识app\common\logic\IndexLogic::thisYearSale
所属业务商品管理
来源模块/系统首页逻辑

功能说明

本年销售详情

调用示例

$result = (new \app\common\logic\IndexLogic())->thisYearSale();

参数

该函数/方法无需传入参数。

返回值

返回项类型说明
this_year_month_amountarray本年销售详情
this_year_month_amount.monthint月份
this_year_month_amount.amountstring销售额

正常返回

{
  "this_year_month_amount": [
    {
      "month": 1,
      "amount": "string"
    }
  ]
}

异常情况

异常类型说明
Throwable调用失败时由具体实现抛出异常,异常信息以运行时结果为准。