Sp_Calc_sScxl.md 1.54 KB

Sp_Calc_sScxl (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_sScxl'._

Narrative

Business context: 数采下料 (data-collection cutting record) — audit / un-audit flag flip on Xfq_Working_record_lineMaster. The proc is the standard Sp_Calc_s<Code> slot for the cutting-record bill but is not currently wired up anywhere in the live metadata.

What it does: Validates sGuid, refuses when bInvalid=1, and on iFlag=1 guards on bCheck then UPDATE Xfq_Working_record_lineMaster to set bCheck=1, sStatus=1, sCheckPerson, tCheckDate. iFlag=0 reverses with bCheck=0, sStatus=0. No KPI, no flow-check, no upstream writeback.

Invocation: Status: appears orphaned. No gdsmodule.sProcName binding, no form-master sSqlStr ref, no other-routine caller, no xly-src caller (only the install script script/标版/30100101/Sp_Calc_sScxl.sql and no Sp_Calc_sScxl.sql optimize patch). Likely an orphaned cutting-record audit slot — candidate for maintainer audit.