# `sp_btn_action_updatequoquotationslave` (procedure)

> 绑定印品


- **Type:** PROCEDURE
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sProInParam` | `longtext` |
| 2 | IN | `sMakePerson` | `varchar(100)` |
| 3 | IN | `sBrId` | `varchar(100)` |
| 4 | IN | `sSuId` | `varchar(100)` |
| 5 | OUT | `sReturn` | `longtext` |
| 6 | OUT | `sCode` | `int` |

## Body

_Body is not pre-cached. To inspect: `mysql --defaults-file=~/.my.cnf -e 'SHOW CREATE PROCEDURE `sp_btn_action_updatequoquotationslave`'`._

## Narrative

**Business context:** 报价单 / 绑定印品 — button-click handler that binds a selected `eleproduct` (印品) onto one or more `quoquotationslave` rows on the quotation form. Specialised sibling of `sp_btn_action` hardcoded to update `quoquotationslave`.

**What it does:** Parses the `sProInParam` JSON envelope (same shape as `sp_btn_action`): from `$.changeValue` it builds `p_sSetSql` of `col = value,` assignments (string-typed when key starts with `s`/`t`, numeric otherwise), merges in fields from `$.sButtonParam.sButtonParam` after substituting `#now#`, `#username#`, `#textareaValue#`. Then iterates `$.params[*].value[*]` and, for each `sSlaveId` / `sProductId`, dynamically builds and `PREPARE`/`EXECUTE`s an `UPDATE quoquotationslave SET <p_sSetSql> WHERE sId = ... AND sBrandsId/sSubsidiaryId` to attach the product binding.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` (POST `/procedureCall/doGenericProcedureCall`) — quotation-form 绑定印品 button names `sp_btn_action_updatequoquotationslave` as the action. No static caller and no `gdsmodule` hook.
