Sp_Supply_filecheck (procedure)
@author:zhucx
@date: 2022/12/02
@describe: 供应商评估-资质审核
- 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_filecheck'._
Narrative
Business context: 基础资料 → 供应商与外协加工商 → 供应商评估 — 资质审核 toolbar action. Reviews submitted supplier-evaluation entries: stamps the reviewer and advances iLevel to the awaiting-final-rating state (2) so Sp_Supply_setLevel can finalise.
What it does: Parses $.params[*].value[*].sSlaveId from sProInParam. For each p_sId runs UPDATE elesupply SET tFileCheck=SYSDATE(), sFileCheck=sMakePerson, iLevel=2 WHERE sId=p_sId AND sBrandsId/sSubsidiaryId. Refuses with the localised paramsErro constant (via Sp_Sis_GetConst) when sProInParam is empty. Reverse pair with Sp_Supply_refilecheck, which strips the audit fields and resets iLevel=0.
Invocation: Dispatched dynamically by GenericProcedureCallServiceImpl.doGenericProcedureCall() — 供应商评估 grid's 资质审核 button names this proc. Install script: script/标版/30100101/Sp_Supply_filecheck.sql. Author tag: @author:zhucx @date: 2022/12/02.