# `Fun_getProcessByWorkOrderId` (function)

> 根据工单ID，控制表ID获取工艺流


- **Type:** FUNCTION
- **Returns:** `longtext`
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sWorkOrderId` | `varchar(50)` |

## Body

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

## Narrative

**Business context:** One-argument convenience wrapper for [`Fun_getProcessByControlName`](Fun_getProcessByControlName.md) — meant to render the colour-coded JSON process-flow chart for a work-order without specifying a control-table id.

**What it does:** delegates straight to `Fun_getProcessByControlName(sWorkOrderId, '')`.

**Invocation:** no form-master sSqlStr, gdsmodule hook, other routine, or xly-src reference uses this wrapper. Status: appears orphaned. No caller found in any channel — candidate for maintainer audit (likely a UI helper whose calling form was retired).
