# `Sp_PlanSlave_BtnEventCBReturn` (procedure)

> @author:zhucx 
		     @date: 
				 @describe:


- **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_PlanSlave_BtnEventCBReturn`'`._

## Narrative

**Business context:** 生产管理 → 生产计划 → 计划明细 — 撤销无需出版 (revert "no plate-making needed" mark) button handler. Inline comment: "撤销无需出版". After a planner had previously flagged a plan-slave row as 无需出版 (skip plate-making, sets `bPublishComplete=1`), this proc lets them undo that mark so the row re-enters the plate-making queue.

**What it does:** Parses `$.params[*].value[*].sSlaveId` from `sProInParam` (note: reads `sSlaveId`, not `sId` — the calling grid is slave-keyed). For each id runs `UPDATE mftproductionplanslave SET bPublishComplete=0 WHERE sId=p_sId AND sBrandsId=sBrId AND sSubsidiaryId=sSuId AND bPublishComplete=1`. The `bPublishComplete=1` guard makes it a no-op on rows that aren't currently marked. No syslog write.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` — the 计划明细 grid's 撤销无需出版 toolbar button names this proc. Inverse of the proc that originally sets `bPublishComplete=1`. No `gdsmodule` hook, no form-master sSqlStr, no xly-src install script.
