# `Sp_Apply_Flow_ProductTest_Proc2` (procedure)

> 发外成品检验 过程2


- **Type:** PROCEDURE
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sData` | `longtext` |
| 2 | IN | `sGuid` | `varchar(100)` |
| 3 | IN | `sInstanceId` | `varchar(100)` |
| 4 | IN | `sTaskParentId` | `varchar(100)` |
| 5 | IN | `sTaskIdNow` | `varchar(100)` |
| 6 | IN | `sComment` | `varchar(100)` |
| 7 | IN | `iPproved` | `varchar(100)` |
| 8 | IN | `sLoginId` | `varchar(100)` |
| 9 | OUT | `sReturn` | `varchar(4000)` |
| 10 | IN | `sBrId` | `varchar(100)` |
| 11 | IN | `sSuId` | `varchar(100)` |
| 12 | OUT | `sCode` | `int` |

## Body

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

## Narrative

**Business context:** 发外成品检验 — second in-flow updater (sibling of `_Proc1`) for the 成品发外检验 approval flow. Persists the approver-supplied `iTypeResult` (检验结论) onto `QlyProductTestMaster`.

**What it does:** Parses `iTypeResult` from inbound `sData` JSON and UPDATEs `QlyProductTestMaster.iTypeResult WHERE sId = sGuid`.

**Invocation:** Dispatched dynamically by Java `CheckExamineFlowDataServiceImpl.doSendCheckFolwData()` via `doProByNameFlow(..., proName, ...)` from a workflow-step config row. Wired as one of the intermediate-task callbacks of the `Sp_Apply_Flow_ProductTest` flow.
