# `Sp_Machine_ReportNewNo` (procedure)


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `tStartDate` | `datetime` |
| 2 | IN | `tEndDate` | `datetime` |
| 3 | IN | `sMachineName` | `varchar(100)` |
| 4 | IN | `sTeamName` | `varchar(100)` |
| 5 | IN | `sDeptName` | `varchar(100)` |
| 6 | IN | `sBrId` | `varchar(100)` |
| 7 | IN | `sSuId` | `varchar(100)` |
| 8 | IN | `sLoginId` | `varchar(100)` |
| 9 | IN | `bFilter` | `text` |
| 10 | IN | `pageNum` | `int` |
| 11 | IN | `pageSize` | `int` |
| 12 | OUT | `totalCount` | `int` |
| 13 | IN | `countCloumn` | `varchar(5000)` |
| 14 | OUT | `countMapJson` | `longtext` |
| 15 | IN | `sFilterOrderBy` | `varchar(5000)` |
| 16 | IN | `sGroupby_select_sql` | `varchar(5000)` |
| 17 | IN | `sGroupby_group_sql` | `varchar(5000)` |

## Body

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

## Narrative

**Business context:** 生产管理 — variant of `Sp_Machine_ReportNew` for the per-machine production-report grid. Same signature (paged-report) and same three-shift layout; the `No` suffix conventionally indicates a 不分班次 / 数据缺失 variant in the xly catalog.

**What it does:** Same shape as `Sp_Machine_ReportNew`: defaults the date range to the current month, builds `p_TempTable` keyed by 设备, fills per-shift stats (合格数, 调机时间, 工时, 二次调机时间, 纸张异常时间, 文件异常时间, 设备保养/异常时间, 主管确认工时, 确认后人工总工时), and computes 效率. Body is near-identical — diff this against `Sp_Machine_ReportNew` to confirm the intended semantic difference.

**Invocation:** Status: appears orphaned. No caller found in any channel — no `gdsmodule.sProcName` hook, no form-master `sSqlStr` binding, no other-routine reference, no install script in xly-src. Likely an unwired sibling / WIP variant of `Sp_Machine_ReportNew` — candidate for maintainer audit.
