# `Sp_BtnRepair_UpdateWXFKBackMemo` (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 PROCEDURE `Sp_BtnRepair_UpdateWXFKBackMemo`'`._

## Narrative

**Business context:** 委外入库 / 外协商反馈 — bulk "批量修改" dialog handler that lets ops record a 外协商 (WX, outsourced-supplier) push-back memo on selected `opsoutsideinstorededmaster` rows.

**What it does:** Parses `$.params[*].value[*].sId` and `$.changeValue.sBackMemo` from `sProInParam`. For each master id, `UPDATE opsoutsideinstorededmaster SET sBackMemo = p_sMemo WHERE sId = p_sId`.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` (POST `/procedureCall/doGenericProcedureCall`) — front-end "外协商反馈" dialog on the 委外入库 grid registers this procedure name. Built from the `sButtonParam.sql` template. Sibling of `Sp_BtnRepair_UpdateGYSFKBackMemo` (purchase-in-storage counterpart).
