# `Sp_productionPlanInfo_BtnEventExamineDate` (procedure)

> 机台排程：推算审核日期


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sProInParam` | `varchar(10000)` |
| 2 | IN | `sMakePerson` | `varchar(100)` |
| 3 | IN | `sBrId` | `varchar(100)` |
| 4 | IN | `sSuId` | `varchar(100)` |
| 5 | OUT | `sReturn` | `varchar(1000)` |
| 6 | OUT | `sCode` | `int` |

## Body

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

## Narrative

**Business context:** 生产管理 → 生产计划管理 → 生产排程 — placeholder handler "机台排程：推算审核日期" (推算 = derive examine date) for `mftproductionplanslave` rows where `tExamineDate` is unset and reported qty has caught up with planned qty. The body is currently a no-op: the cursor walks the candidate `sWorkOrderId` rows but the BEGIN/END loop is empty.

**What it does:** Counts `MftProductionPlanSlave` rows with `ISNULL(tExamineDate)=1 AND dProcessQty < dProductionReportQty AND IFNULL(sWorkOrderId,'') <> ''` into `p_iCount`. If any, opens a cursor over those `sWorkOrderId`s and iterates — but the inner block contains only commented-out logic. Effectively does nothing in production. Treat as a stub awaiting implementation.

**Invocation:** Dispatched dynamically by `GenericProcedureCallServiceImpl.doGenericProcedureCall()` — 生产排程 form's "推算审核日期" button. xly-src ships `script/标版/30100101/schedule/Sp_productionPlanInfo_BtnEventExamineDate.sql`. Candidate for maintainer audit — verify whether this stub is intentional or unfinished.
