# `Sp_Apply_Flow_ProcessChange_Proc1` (procedure)

> 工艺变更 过程1


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

## Narrative

**Business context:** 工艺变更 — in-flow updater for the 工艺变更 approval flow. Persists the approver-supplied 差异金额 (`dPoorMoney`) onto `mftprocesschangemaster` at one of the intermediate approval steps.

**What it does:** Parses `dPoorMoney` from the inbound `sData` JSON (with `REPLACE(... ,'"','')` to strip JSON quoting) and UPDATEs `mftprocesschangemaster.dPoorMoney WHERE sId = sGuid`.

**Invocation:** Dispatched dynamically by Java `CheckExamineFlowDataServiceImpl.doSendCheckFolwData()` via `doProByNameFlow(..., proName, ...)` where `proName` is read from a workflow-step config row (companion to the Apply-time proc `Sp_Apply_Flow_ProcessChange`). Wired as one of the intermediate-task callbacks of that flow.
