# `Sp_productionPlanInfo_BtnEventCancelZDDate` (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` | `varchar(1000)` |
| 6 | OUT | `sCode` | `int` |

## Body

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

## Narrative

**Business context:** 生产管理 → 生产计划管理 → 生产排程 — toolbar handler "机台计划：取消指定时间" (cancel pinned date) on `mftproductionplanslave`. Clears the planner's hard-locked date on selected machine-plan rows so they float again on the gantt.

**What it does:** Validates `sProInParam`, picks the `slave`/`slaveInfo` JSON value list, then for every dash-separated `sId` runs `UPDATE mftproductionplanslave SET tZdDate=NULL WHERE sId=… AND sBrandsId=sBrId AND sSubsidiaryId=sSuId`. No state changes beyond `tZdDate` and no syslog row.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` (POST `/procedureCall/doGenericProcedureCall`) — the 生产排程 form's "取消指定时间" button names this proc as `sproName`. xly-src ships `script/标版/30100101/schedule/Sp_productionPlanInfo_BtnEventCancelZDDate.sql` as the install file.
