# `Sp_Bd_Cqzy_workshop6` (procedure)

> @author:zhucx
							@date:20210620 封存
							@describe: 检验车间看板 对应 commonAuto/templateQCM_CQZY6


- **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_Cqzy_workshop6`'`._

## Narrative

**Business context:** 检验车间看板 — sealed (`封存` 2021-06-20) variant of `Sp_Bd_Cqzy_workshop3`, corresponded to front-end template `commonAuto/templateQCM_CQZY6`. Same 检验 (inspection) line, 9 PLCs `29-37`.

**What it does:** Same shape as `Sp_Bd_Cqzy_workshop3`: hardcodes PLC list, per-PLC assembles per-machine 当前状态/工单/产量 rows into `p_Bd_workshop6`, emits a JSON board into `sReturn`.

**Invocation:** No form-master sSqlStr, no `gdsmodule` hook, no install script under `xly-src/script/`, no Java caller. Status: marked `封存` in the header — retired from production. Body retained for reference; the live equivalent is `Sp_Bd_Cqzy_workshop3`. Candidate for maintainer audit before deletion.

Flag: header marks 封存 but the body is intact (not commented out) — verify no legacy dashboard endpoint still calls it before dropping.
