Sp_BtnEvent_LogisticsComfirm.md 1.65 KB

Sp_BtnEvent_LogisticsComfirm (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 sUserId varchar(100)
4 IN sBrId varchar(100)
5 IN sSuId varchar(100)
6 OUT sReturn varchar(1000)
7 OUT sCode int

Body

Body is not pre-cached. To inspect: mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURESpBtnEvent_LogisticsComfirm'._

Narrative

Business context: 物流 / 物流单 — button-click handler that toggles the final 确认 flag on selected logisticsordermaster rows. Sets bConfirmComplete to gate downstream invoicing / billing on the logistics note.

What it does: Validates sProInParam length, parses $.params[*].value[*].sId, and per id UPDATE logisticsordermaster SET bConfirmComplete = (CASE WHEN bConfirmComplete=1 THEN 0 ELSE 1 END), tConfirmDate=NOW(), sConfirmPerson=sMakePerson — toggles the flag (so the same button reverses a previous confirm).

Invocation: Dispatched dynamically by GenericProcedureCallServiceImpl.doGenericProcedureCall() (POST /procedureCall/doGenericProcedureCall) — 物流单 grid's 确认 toolbar button names Sp_BtnEvent_LogisticsComfirm as the action. Companion of Sp_BtnEvent_LogAheadComfirm (pre-confirm).

Flag: unlike its LogAheadComfirm sibling, this version has no p_sAllId dedup guard — a duplicated id in the input would toggle and re-toggle, leaving the flag at its pre-button value silently.