Sp_BtnRepair_UpdatePMC.md 1.41 KB

Sp_BtnRepair_UpdatePMC (procedure)

PMC意见

  • 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 PROCEDURESpBtnRepair_UpdatePMC'._

Narrative

Business context: 销售订单 / PMC意见 — bulk "批量修改" dialog handler that lets PMC (production-material-control) staff record a feedback note sPMCReason against selected salsalesorderslave lines (typically explaining capacity/material issues blocking the order line).

What it does: Parses $.params[*].value[*].sId and $.changeValue.sPMCReason from sProInParam. For each row id, UPDATE salsalesorderslave SET sPMCReason = p_sPMCReason WHERE sId = p_sId.

Invocation: Dispatched dynamically by GenericProcedureCallServiceImpl.doGenericProcedureCall() (POST /procedureCall/doGenericProcedureCall) — front-end "PMC意见" dialog on the 销售订单 detail grid registers this procedure name. Built from the sButtonParam.sql template. Sibling of the Sp_BtnRepair_Update* family.