# `Sp_Bd_bi22_nomes` (procedure)

> @author:zhucx
							@date:20220111 
							@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_bi22_nomes`'`._

## Narrative

**Business context:** 印刷现场 — non-MES fork of `Sp_Bd_bi22`, same four-machine 现场看板 for the 印刷 line but without MES-integrated work-order joins. Same PLC list `1, 2, 13, 23`.

**What it does:** Same shape as `Sp_Bd_bi22`: hardcodes a 4-row `p_Bd_PlcNo_No` map, reads `elemachine`/`plc_currentmachinevalue` per PLC, assembles per-machine tiles into `p_Bd_workshop5`, emits a JSON board into `sReturn`. The MES-specific 工单 lookups are bypassed in this variant.

**Invocation:** No form-master sSqlStr, no `gdsmodule` hook, no other-routine caller, no install script under `xly-src/script/`, no Java caller. Status: appears orphan — likely a non-MES fallback that was forked but never wired to a dashboard endpoint. Candidate for maintainer audit before deletion. The MES-integrated `Sp_Bd_bi22` is the live one.
