# `Sp_Manufacture_ProductionPlanInfoNew` (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 | `sState` | `varchar(10)` |
| 4 | IN | `sBrId` | `varchar(100)` |
| 5 | IN | `sSuId` | `varchar(100)` |
| 6 | IN | `bFilter` | `varchar(5000)` |
| 7 | IN | `pageNum` | `int` |
| 8 | IN | `pageSize` | `int` |
| 9 | OUT | `totalCount` | `int` |
| 10 | IN | `countCloumn` | `varchar(5000)` |
| 11 | OUT | `countMapJson` | `longtext` |
| 12 | IN | `sFilterOrderBy` | `varchar(5000)` |
| 13 | IN | `sGroupby_select_sql` | `varchar(5000)` |
| 14 | 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_ProductionPlanInfoNew`'`._

## Narrative

**Business context:** 生产管理 → 生产计划管理 — refreshed (`New`) variant of the machine-clicked tree-grid data source for the 生产排程 boards. Was intended as a replacement for the per-machine plan listing under the 排程 forms.

**What it does:** Accepts the standard pageable report shape (`bFilter`, `pageNum`/`pageSize`, `sFilterOrderBy`, `sGroupby_*`, `countCloumn`/`countMapJson` for footer totals). The `bFilter` parser that splits rows per `sHandlType` is commented out; the surviving path just defers paging/grouping/total-count to the outstanding-query helper. Comment is `点击机台获取排程数据(树形结构带不固定查询)`.

**Invocation:** No form-master binding, no `gdsmodule` hook, no caller in `information_schema.ROUTINES`, no xly-src reference. Status: appears orphaned — the live 排程 forms bind to `Sp_Manufacture_ProductionPlanInfoTree*` instead. Candidate for maintainer audit (likely a parallel draft superseded by the `_Tree_Base*` family).
