# `Sp_Calc_sSup` (procedure) > 供应商审核 - **Type:** PROCEDURE - **Deterministic:** NO - **SQL data access:** CONTAINS SQL ## Parameters | # | Mode | Name | Type | |---|---|---|---| | 1 | IN | `iFlag` | `int` | | 2 | IN | `iTmpCheck` | `int` | | 3 | IN | `sFormGuid` | `varchar(100)` | | 4 | IN | `sGuid` | `varchar(100)` | | 5 | IN | `sLoginId` | `varchar(100)` | | 6 | OUT | `sReturn` | `varchar(5000)` | | 7 | IN | `sBrId` | `varchar(100)` | | 8 | IN | `sSuId` | `varchar(100)` | | 9 | OUT | `sCode` | `int` | ## Body _Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `Sp_Calc_sSup`'`._ ## Narrative **Business context:** Bears the `Sp_Calc_s*` audit/un-audit signature against `elenewsupply` (new-supplier onboarding / 新供应商申请). COMMENT says 供应商审核 — auditing the new-supplier registration moves it toward becoming a usable `elesupply` row. **What it does:** Validates `sGuid`. With `iFlag=1` and `bCheck=0`, flips `bCheck=1`/`sStatus=1`/`sCheckPerson`/`tCheckDate` on `elenewsupply`; when `iDefineCheck=1` and `iTmpCheck<>1` runs `Sp_System_ReplaceField_*` and `Sp_System_CheckFlow` so the custom approval workflow can fire. With `iFlag=0` mirrors as un-audit. Refuses transitions that are already in the requested state. **Invocation:** Status: appears orphaned. No `gdsmodule.sProcName` row binds this name; xly-src has no occurrence anywhere. No Java caller, no other-routine caller, no form-master reference. Candidate for maintainer audit — the live 供应商准入/审核 hook is likely a sibling such as `Sp_Calc_sSupply` (which targets the same business but the canonical `elesupply` table).