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

## Body

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

## Narrative

**Business context:** 生产管理 → 计划、排程 → 计划列表 — toolbar button on the production-plan slave grid that flags 拼版 (makeup / plate imposition) completion for the selected plan rows. Mirrors `Sp_PlanList_BtnEventMouldFinished` and `Sp_PlanListCTP_BtnEventFinished` for the makeup stage. Counterpart un-check: `Sp_PlanListMakeup_BtnEventFinishedfhpb`.

**What it does:** Parses `$.params[*].value[*].sId` for the picked `mftproductionplanslave` rows. For each, `UPDATE mftproductionplanslave SET tMakeup=NOW(), bMakeup=1, sMakeupPerson=sMakePerson`. Also computes a `p_dMoney` cost figure from `$.changeValue` and runs `Update mftproductionplanslave Set dMakeupMoney=p_dMoney` through the `valueKey`-driven dynamic builder so the front-end can pass per-column overrides via `Sp_System_ReplaceField`.

**Invocation:** Dispatched by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` — the 拼版完工 toolbar button on the 计划列表 grid names this proc. Install script: `script/标版/30100101/Sp_PlanListMakeup_BtnEventFinished.sql`.
