Sp_Supply_refilecheck (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 PROCEDURESpSupply_refilecheck'._
Narrative
Business context: 基础资料 → 供应商与外协加工商 → 供应商评估 — 取消资质审核 / 反审核 toolbar action. Reverses Sp_Supply_filecheck by stamping sFileCheckMemo with the rejection note and resetting iLevel=0, putting the supplier back to draft.
What it does: Parses $.params[*].value[*].sSlaveId from sProInParam plus $.changeValue.textareaValue (rejection memo) and any optional valueKey-driven extra column setters. Builds a dynamic UPDATE elesupply SET iLevel=0, <key>=<val>, …, tFileCheck=SYSDATE(), sFileCheck=sMakePerson, sFileCheckMemo=<note> WHERE sId=p_sId AND sBrandsId/sSubsidiaryId, then PREPARE/EXECUTE. Errors with localised paramsErro when sProInParam is empty.
Invocation: Dispatched dynamically by GenericProcedureCallServiceImpl.doGenericProcedureCall() — 供应商评估 grid's 取消资质审核 button names this proc, with the reviewer comment travelling via changeValue.textareaValue. Install script: script/标版/30100101/Sp_Supply_refilecheck.sql. Caveat: the dynamic SET includes ,iLevel = 0 after the prefix already contains Set — relies on p_setSql not being empty after the join; the stray SELECT @sSqlStmt (debug echo) is left in the body and will surface in the response — clean before relying on output shape.