# `sp_get_unTodo_history` (procedure)

> 办理历史


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

## Parameters

| # | Mode | Name | Type |
|---|---|---|---|
| 1 | IN | `sLoginId` | `varchar(50)` |
| 2 | IN | `sBrId` | `varchar(50)` |
| 3 | IN | `sParentId` | `varchar(50)` |
| 4 | IN | `sSuId` | `varchar(50)` |
| 5 | IN | `isHandle` | `int` |
| 6 | IN | `bFilter` | `longtext` |
| 7 | IN | `pageNum` | `int` |
| 8 | IN | `pageSize` | `int` |
| 9 | OUT | `totalCount` | `int` |
| 10 | IN | `countCloumn` | `longtext` |
| 11 | OUT | `countMapJson` | `longtext` |
| 12 | IN | `sFilterOrderBy` | `longtext` |

## Body

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

## Narrative

**Business context:** Backup / snapshot variant of `sp_get_unTodo` (`_history` suffix). Per wiki convention, backup objects are not narrated (see [the index](../../index.md#whats-out-of-scope)).

**What it does:** Same as `sp_get_unTodo` at the time of copy.

**Invocation:** Not expected to be called from production code; verify before relying on it.
