# `Sp_Bd_Root_allstatus26` (procedure)

> @author:zhucx
							@date:20210620 封存
							@describe: 看板管理-数字工厂状态看板


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `iFlag` | `int` |
| 2 | IN | `iTmpCheck` | `int` |
| 3 | IN | `sFormGuid` | `varchar(100)` |
| 4 | IN | `sGuid` | `varchar(100)` |
| 5 | IN | `sLoginId` | `varchar(100)` |
| 6 | OUT | `sReturn` | `varchar(4000)` |
| 7 | IN | `sBrId` | `varchar(100)` |
| 8 | IN | `sSuId` | `varchar(100)` |
| 9 | OUT | `sCode` | `int` |

## Body

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

## Narrative

**Business context:** 看板管理 / 数字工厂状态看板 — variant of `Sp_Bd_Root_allstatus25` for the 16-press production-floor status grid. Same author and `封存` tag.

**What it does:** Same shape as `Sp_Bd_Root_allstatus25` — seeds `p_Bd_PlcNo_No` with the 16-slot demo PLC list and cursor-loops to fill `p_Bd_workshop5(sName,sValue)` per slot with order/status/quantity/shift-time fields.

**Invocation:** No install script in xly-src, no form-master, no `gdsmodule` hook, no Java caller, no other-routine caller. Reached only by an external dashboard HTTP endpoint that calls the proc by name. Marked `封存` (sealed). **Bug:** the `INSERT INTO p_Bd_PlcNo_No(sMachineNo,iNo)` and the cursor `SELECT sMachineNo,iNo FROM p_Bd_PlcNo_No` reference a column `sMachineNo` that the `CREATE TEMPORARY TABLE` does not define — the temp table only has `iPlcNo` and `iNo`. The proc will fail at the seeding INSERT every time it is called.
