# `Fun_get_show_config_ys` (function)

> 根据传入的字段，字段名称，组装显示JSON配置


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sName` | `varchar(50)` |
| 2 | IN | `showName` | `varchar(50)` |
| 3 | IN | `iOrder` | `int` |
| 4 | IN | `sBrId` | `varchar(50)` |
| 5 | IN | `sSuId` | `varchar(50)` |
| 6 | IN | `sParentId` | `varchar(50)` |
| 7 | IN | `sLoginId` | `varchar(50)` |
| 8 | IN | `bVisible` | `int` |
| 9 | IN | `bSum` | `int` |
| 10 | IN | `sColorTerms` | `longtext` |

## Body

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

## Narrative

**Business context:** Dynamic-report column-config builder ("动态配置返回函数" family) — "颜色规则" (color-terms) variant at default width 80. Lets a column carry FROUNT cell-level conditional-formatting rules (`sColorTerms`) — e.g., red background when `sState='未审核'`.

**What it does:** returns a `JSON_OBJECT` column-config block; same shape as `_hz` (width 80, NULL-safe, tenant fields) with `sColorTerms` parameter wired through.

**Invocation:** called by `Sp_EquipmentOutput_Machine`, `Sp_EquipmentOutput_Machine_YH`, `Sp_mes_Timeanalyse_Machine`, `Sp_MftPlan_MachineProcessLodading`. Reached from each report's open/refresh flow under 生产管理.
