# `Sp_chart_TodayOrder_hm` (procedure)

> 今日订单


- **Type:** PROCEDURE
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sLoginId` | `varchar(100)` |
| 2 | IN | `sBrId` | `varchar(100)` |
| 3 | IN | `sSuId` | `varchar(100)` |
| 4 | IN | `bFilter` | `varchar(5000)` |
| 5 | OUT | `sCode` | `int` |
| 6 | OUT | `sReturn` | `varchar(5000)` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_chart_TodayOrder_hm`'`._

## Narrative

**Business context:** Dashboard chart card 今日订单 — variant intended to summarise today's sales orders by product classification, emitting a pie/donut chart payload labelled in 元.

**What it does:** Joins `Viw_SalSalesOrder` to `eleproduct` and `sisproductclassify`, restricts to checked rows for the current brand/subsidiary with `tCreateDate` = today and form `sFormId='101251240115016086186007360'`, groups by classification, sums `dProductMoney`, and emits a JSON pie payload `{data: [{x,y}…], hasLegend:true, subTitle:'单位:元', lineWidth:5}`.

**Invocation:** Status: appears orphaned. No caller found in any channel — `gdsconfigcharmaster.sProcedureName` does not reference this routine, no module hook, no form embed, no other-routine call, no xly-src reference. A `_hm` ("Huayao Mobile"?) variant of `Sp_chart_TodayOrder` that was never wired up. Candidate for maintainer audit.
