# `Sp_Manufacture_ProductionPlanInfoTree_YS` (procedure)

> 点击机台获取排程数据(树形结构带不固定查询)


- **Type:** PROCEDURE
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sFlag` | `varchar(225)` |
| 2 | IN | `sLoginId` | `varchar(100)` |
| 3 | IN | `iBillOutside` | `int` |
| 4 | IN | `sState` | `varchar(10)` |
| 5 | IN | `sBrId` | `varchar(100)` |
| 6 | IN | `sSuId` | `varchar(100)` |
| 7 | IN | `bFilter` | `varchar(5000)` |
| 8 | IN | `pageNum` | `int` |
| 9 | IN | `pageSize` | `int` |
| 10 | OUT | `totalCount` | `int` |
| 11 | IN | `countCloumn` | `varchar(5000)` |
| 12 | OUT | `countMapJson` | `longtext` |
| 13 | IN | `sFilterOrderBy` | `varchar(5000)` |
| 14 | IN | `sGroupby_select_sql` | `varchar(5000)` |
| 15 | IN | `sGroupby_group_sql` | `varchar(5000)` |

## Body

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

## Narrative

**Business context:** 生产管理 → 生产计划管理 → 印刷日计划 — `YS` (印刷, press) dispatcher for the production-tree board. The 印刷日计划 form binds this proc; the press planner clicks a machine and sees a tree of plan rows refined for press operations.

**What it does:** Body is just `CALL Sp_Manufacture_ProductionPlanInfoTree_Base_TC(sFlag, sLoginId, iBillOutside, sState, sBrId, sSuId, bFilter, pageNum, pageSize, totalCount, countCloumn, countMapJson, sFilterOrderBy, sGroupby_select_sql, sGroupby_group_sql, 'YS')` — same shape as `_TC`/`_YH` siblings, hard-coding `sTypeSear='YS'` so the base proc applies the press dialect.

**Invocation:** Bound as `gdsconfigformmaster.sSqlStr` of the 印刷日计划 form `sId 2022042422052518162677975419910` under module 印刷日计划 (`sId 16508090850002295893127095467000`) → 生产计划管理 → 生产管理. Loaded when the user opens that day-plan board. Shipped as `script/标版/30100101/schedule/Sp_Manufacture_ProductionPlanInfoTree_YS.sql`.
