# `Sp_BtnEventProductReportCancel` (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_BtnEventProductReportCancel`'`._

## Narrative

**Business context:** 生产报工 / 班次日确认 — toolbar handler that revokes the per-day confirmation on a `mftproductionreportslave` row (`sConfirmDayInfo='0'`). Pairs with `Sp_BtnEventProductReportConfirm`, which sets the flag to `'1'`.

**What it does:** Parses `$.params[*].value[*].sId` from `sProInParam`. For each slave id, sets `mftproductionreportslave.sConfirmDayInfo='0'`. Returns `sCode=-1, paramsErro` on missing input.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` (POST `/procedureCall/doGenericProcedureCall`) — 生产报工 grid's 取消日确认 toolbar button names this proc as its action. Inverse: `Sp_BtnEventProductReportConfirm`.
