FUN_JSON_INT.md
1023 Bytes
FUN_JSON_INT (function)
请求后处理
- Type: FUNCTION
-
Returns:
int - Deterministic: NO
- SQL data access: CONTAINS SQL
Parameters
| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | sParam |
longtext |
| 2 | IN | sKey |
varchar(200) |
Body
Body is not pre-cached. To inspect: mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE FUNCTIONFUNJSON_INT'._
Narrative
Business context: Integer-typed sibling of FUN_JSON_CHAR. Reads a key out of a JSON payload and casts to signed int. Designed for the same sp_btn_action button-event dispatcher to evaluate flag fields (bSubmit, bCheck, bTecnologe, …).
What it does: If sParam is valid JSON, extracts sKey, strips quotes, casts to signed integer; defaults to 0.
Invocation: Orphan-via-dead-chain. Only callers are sp_btn_action + sp_btn_action_updatequoquotationslave, both themselves orphans (no form-master, module-hook, or Java reference anywhere). Candidate for maintainer audit.