# `Sp_BtnEvent_AccProductUnFrozen` (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_BtnEvent_AccProductUnFrozen`'`._

## Narrative

**Business context:** 财务 / 成品初始化 — button-click handler that unfreezes selected `accproductinitslave` rows previously frozen by `Sp_BtnEvent_AccProductFrozen`. Releases them back into downstream cost / closing flow.

**What it does:** Same JSON-envelope iteration as the Frozen sibling: walks `$.params[*].value[*].sSlaveId` and `UPDATE accproductinitslave SET bFrozen=0, sFrozenPerson=sMakePerson, tFrozenDate=NOW()`. Validates `sProInParam` length and returns `sCode=-1` with `paramsErro` message when malformed.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` (POST `/procedureCall/doGenericProcedureCall`) — 成品初始化 grid's 解冻 toolbar button names `Sp_BtnEvent_AccProductUnFrozen` as the action. No static caller, no `gdsmodule` hook.

Flag: COMMENT header is `送货未开票冻结` and default `sReturn` is `'送货未开票冻结成功！'` — copy-pasted from the Frozen sibling; should be `'解冻成功'` for the unfreeze direction. Also `sFrozenPerson`/`tFrozenDate` are overwritten with the unfreezing user/timestamp, losing the original-freeze attribution.
