# `Sp_Supply_setLevel` (procedure) - **Type:** PROCEDURE - **Deterministic:** NO - **SQL data access:** CONTAINS SQL ## Parameters | # | Mode | Name | Type | |---|---|---|---| | 1 | IN | `sProInParam` | `varchar(10000)` | | 2 | IN | `sMakePerson` | `varchar(100)` | | 3 | IN | `sBrId` | `varchar(100)` | | 4 | IN | `sSuId` | `varchar(100)` | | 5 | OUT | `sReturn` | `varchar(1000)` | | 6 | OUT | `sCode` | `int` | ## Body _Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_Supply_setLevel`'`._ ## Narrative **Business context:** 基础资料 → 供应商与外协加工商 → 供应商评估 — 评级 (set rating) toolbar action. Final step of the supplier-evaluation flow after [`Sp_Supply_submit`](Sp_Supply_submit.md) and [`Sp_Supply_filecheck`](Sp_Supply_filecheck.md): records the assigned rating against the supplier row. **What it does:** Parses `$.params[*].value[*].sSlaveId` and `$.changeValue` (the rating-form field set). For each `valueKey` column listed in `changeValue[0].valueKey` (comma-separated), splices a `