# `fun_gettzreportId_bycus` (function)

> 根据客户ID获取报表ID


- **Type:** FUNCTION
- **Returns:** `varchar(255)`
- **Deterministic:** NO
- **SQL data access:** CONTAINS SQL

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `p_sCustId` | `varchar(255)` |
| 2 | IN | `p_sSrcCustId` | `varchar(255)` |

## Body

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

## Narrative

**Business context:** Customer-specific 通知 (tz / `tz` likely "通知" / notification) print-report dispatch — sibling of [`fun_getreportId_bycus`](fun_getreportId_bycus.md). Same shape, same 14 hard-coded customer `sId`s, but returns a different set of report `sId`s tied to a notification/通知 document flow.

**What it does:** sequence of `ELSEIF p_sCustId = '<guid>' THEN RETURN '<report-guid>'` clauses, with a final `ELSE` for non-listed customers. Reads no tables.

**Invocation:** no form-master sSqlStr, gdsmodule hook, other routine, or xly-src reference uses this function. Status: appears orphaned. No caller found in any channel — candidate for maintainer audit. Tenant-specific customer + report `sId`s.
