# `Fun_get_show_config_basic` (function)

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


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `jUpdateConfigJson` | `json` |

## Body

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

## Narrative

**Business context:** Dynamic-report column-config builder ("动态配置返回函数" family) — the most flexible variant. Accepts a partial JSON of column-config overrides and merges them onto a full default config object (every gdsconfigformslaver-shaped key with sensible defaults, `iFitWidth=80`, `bVisible=false`, `iTag=0`, etc.).

**What it does:** declares an internal base JSON with all column-config keys defaulted, then `JSON_MERGE_PATCH`-style merges `jUpdateConfigJson` over it (the body actually iterates keys and selectively overrides). Returns the merged JSON. Lets callers supply only the keys they care about.

**Invocation:** called by `Sp_CostAccount_CostCarryForward` and `Sp_CostAccount_WorkCenterToOperation` to compose per-stage column blocks (合并 multiple `Fun_get_show_config_basic(...)` calls with CONCAT). Reached via the 成本核算 (cost-accounting) carry-forward / workcenter-to-operation report buttons.
