# `Sp_Manufacture_ProductionPlanInfoTree_TC` (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_TC`'`._

## Narrative

**Business context:** 生产管理 → 生产计划管理 → 生产排程(Tree) (印刷/印后 TC dialect) — thin dispatcher to `Sp_Manufacture_ProductionPlanInfoTree_Base_TC`. The `TC` ("套餐") tag is one of three production-tree dialects (TC / YH / YS) that share the same base body.

**What it does:** Body is just `CALL Sp_Manufacture_ProductionPlanInfoTree_Base_TC(...sFilterOrderBy, sGroupby_select_sql, sGroupby_group_sql, sFlag)` — forwards every standard pageable-report argument and passes its caller-supplied `sFlag` as the `sTypeSear` tag, so the base proc can switch behaviour per dialect.

**Invocation:** No direct form-master binding, no `gdsmodule` hook, no Java caller, no xly-src install script. Other-routine references in `information_schema.ROUTINES` are only the sibling base/`_YH`/`_YS` (which don't actually call this proc — they call `_Base_TC` directly). Status: appears orphaned — superseded by direct `_Base_TC` calls from the dialect forms. Candidate for maintainer audit.
