Sp_Calc_sSupply.md 1.41 KB

Sp_Calc_sSupply (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 PROCEDURESpCalc_sSupply'._

Narrative

Business context: Bears the Sp_Calc_s* audit/un-audit signature against elesupply (供应商主数据 = supplier master). COMMENT says 供应商准入 — auditing approves the supplier for use in procurement bills.

What it does: Validates sGuid. With iFlag=1 and the master not already bCheck=1, flips bCheck=1/sStatus=1/sCheckPerson/tCheckDate on elesupply. With iFlag=0 symmetric un-audit. Localised error messages via Sp_Sis_GetConst.

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 — elesupply does have an audit flow, just wired under a different proc.