# `Fun_get_show_config_sear` (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 | `sChineseDropDown` | `longtext` |
| 10 | IN | `sDropDownType` | `longtext` |
| 11 | IN | `iFitWidth` | `int` |

## Body

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

## Narrative

**Business context:** Dynamic-report column-config builder ("动态配置返回函数" family) — "查询/搜索" (searchable) variant. Wraps `Fun_get_show_config` and patches the result to flag the column as searchable (`bFind=TRUE`) with a dropdown-bound filter (`sChineseDropDown` + `sDropDownType`).

**What it does:** delegates to `Fun_get_show_config` to get the base config (with caller-specified `iFitWidth`), then `JSON_MERGE`s in `sChineseDropDown`, `bFind=TRUE`, and `sDropDownType`. Returns the merged JSON.

**Invocation:** called by `Sp_SalesOrder_Analysis` (销售订单分析). Source dir also shows `Sp_OpsOutside_Analysis` invokes it (外发分析). Reached from the analytical-report grid's open / refresh flow.
