[fix] 出入库工具复查修复:调拨待办漏本人修改/待办行串位/调拨派生入库单凭证回查 (REQ-20260919-0003) (#22)

This commit was merged in pull request #22.
This commit is contained in:
2026-09-19 22:28:02 +08:00
parent c9240fa31c
commit 68fd71edbb
9 changed files with 195 additions and 19 deletions
@@ -17,11 +17,13 @@
流程视图一行 = 单据 × 处理人 × 待办环节。待办判定:
```
user_id = 当前登录人 AND soft_delete = 0 AND operation_type IN (0, 1, 2)
user_id = 当前登录人 AND soft_delete = 0
```
- `operation_type=3` 为"驳回或修改记录",纯日志不需要待办,排除(出入库视图);
调拨视图 `operation_type=4`(撤销)同为纯日志,也被 IN (0,1,2) 排除。
- 出入库视图再排除 `operation_type=3`("驳回或修改记录",纯日志不需要待办);
调拨视图**不过滤** `operation_type`——其 `3=本人修改` 是真实待办环节(调拨被驳回后
申请人需修改重新提交),老系统调拨待办接口同样不过滤(`warehouseAllocationProcessListByPage`
仅按 user_id + soft_delete 过滤)。`4=撤销` 在调拨视图也视为可操作环节一并返回。
- 不按代理商过滤:待办是"人"的语义,不是代理商数据权限语义。
老系统出入库待办同样只按 `user_id` 过滤(`input.setUserId(user.getId())`),
只有调拨待办显式 `eq("user_id", user.getId())` 且代理行级过滤被注释掉,
@@ -34,8 +36,8 @@ user_id = 当前登录人 AND soft_delete = 0 AND operation_type IN (0, 1, 2)
| 0 | 审批流操作 | 审批流操作 |
| 1 | 确认出库 / 确认入库 | 确认入库操作 |
| 2 | 本人修改(需申请人待办) | 确认出库操作 |
| 3 | 驳回或修改操作(纯日志,排除) | 本人修改 |
| 4 | — | 撤销(纯日志,排除) |
| 3 | 驳回或修改操作(纯日志,排除) | 本人修改(真实待办,保留) |
| 4 | — | 撤销(保留) |
`schedule_state`:0=无需待办,1=待办,2=已办。