# `Sp_Manufacture_ProductionPlanInfo12` (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_ProductionPlanInfo12`'`._

## Narrative

**Business context:** 生产管理 → 生产计划管理 → 生产排程 — checkpoint copy of `Sp_Manufacture_ProductionPlanInfo` (header label 点击机台获取排程数据). Same signature, same `bFilter`-parsing logic, same `MftProductionPlanSlave` source. Looks like a numbered snapshot kept beside the canonical proc.

**What it does:** Same flow as `Sp_Manufacture_ProductionPlanInfo`: parses `bFilter` into `sMachineId`/`sProcessId`/`sWorkCenterId`/`sState`/`sId`/`tStartDate`, builds temp `PlanInfo` (via `Insert Into PlanInfo` + `Update PlanInfo`) from `MftProductionPlanSlave` filtered to the chosen machine and tenant, optionally updates `MftProductionPlanSlave` itself with derived fields, and returns the paged rows.

**Invocation:** No `gdsconfigformmaster.sSqlStr`, `gdsmodule` hook, other-routine, or xly-src caller references this name. Status: appears orphaned — a numbered checkpoint of `Sp_Manufacture_ProductionPlanInfo`; candidate for maintainer audit before deleting.
