fix: 修复 v1.6 回归 BUG-007 PinList→PinMAP 上方引脚合并问题

This commit is contained in:
2026-06-12 22:13:55 +08:00
parent 7a4a767697
commit 4358214197
2 changed files with 76 additions and 7 deletions

View File

@@ -8,4 +8,73 @@
| BUG-004 | 中 | 不支持循环处理流程 | 转换完成后继续操作 | 循环等待下一个文件,输入 Q 返回主菜单 | 处理完直接退出 | 已修复 | F008 |
| BUG-005 | 高 | 模板文件名/路径错误 | PinList↔PinMAP 转换时读取模板 | PinMAP 模板为 PinMAP-Template.xlsxPinList 模板为 PinList-Template.xlsx | v1.5.4 只改文件名未改搜索路径,模板在 Code/src/Template/ 下但代码在根目录找 | 已修复 | v1.5.5 |
| BUG-006 | 高 | PinList→PinMAP 上边 Name 与左边 Name 同行(数据无误但肉眼混淆) | 12×12 PinMapPinList→PinMAP 转换后查看输出 | 每条边的 Name 和 Number 在独立行/列区域,肉眼可辨 | v1.5.4 上边 Name 在 row 2与左边 Name(row 2)同行3 条边数据混在同一行 | 已修复 | v1.5.5 |
| BUG-007 | 高 | v1.6 PinList→PinMAP 上方引脚合并到标题行,结构缺行 | PinList(QFN60)→PinMAP查看输出 | 第1行独立标题合并单元格第2-3行为上方引脚序号和PinName共21行 | 标题与上方引脚合并为一行 `QFN60,Pin60,...Pin46,`上方引脚无独立行共19行缺2行 | 已修复 | F013, F016 |
| BUG-007 | 高 | v1.6 PinList→PinMAP 上方引脚合并到标题行,结构缺行 | PinList(QFN60)→PinMAP 转换,查看输出 | 第1行独立标题合并单元格第2-3行为上方引脚序号和PinName共21行 | 标题与上方引脚合并为一行上方引脚无独立行共19行缺2行 | **已修复** | F013, F016 |
---
## BUG-007 完整对比数据用户原始反馈2026-06-12
### 程序生成v1.6 实际输出,已转为 CSV
```
QFN60,Pin60,Pin59,Pin58,Pin57,Pin56,Pin55,Pin54,Pin53,Pin52,Pin51,Pin50,Pin49,Pin48,Pin47,Pin46,
,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,
1,Pin1,,,,,,,,,,,,,,Pin45,45
2,Pin2,,,,,,,,,,,,,,Pin44,44
3,Pin3,,,,,,,,,,,,,,Pin43,43
4,Pin4,,,,,,,,,,,,,,Pin42,42
5,Pin5,,,,,,,,,,,,,,Pin41,41
6,Pin6,,,,,,,,,,,,,,Pin40,40
7,Pin7,,,,,,,,,,,,,,Pin39,39
8,Pin8,,,,,,,,,,,,,,Pin38,38
9,Pin9,,,,,,,,,,,,,,Pin37,37
10,Pin10,,,,,,,,,,,,,,Pin36,36
11,Pin11,,,,,,,,,,,,,,Pin35,35
12,Pin12,,,,,,,,,,,,,,Pin34,34
13,Pin13,,,,,,,,,,,,,,Pin33,33
14,Pin14,,,,,,,,,,,,,,Pin32,32
15,Pin15,,,,,,,,,,,,,,Pin31,31
,Pin16,Pin17,Pin18,Pin19,Pin20,Pin21,Pin22,Pin23,Pin24,Pin25,Pin26,Pin27,Pin28,Pin29,Pin30,
,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,
```
### 期望输出(用户提供的正确 PinMAP
```
"QFN60 6*6*0.85mm
xxx
版本xxxx",,,,,,,,,,,,,,,,,,
,,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,,
,,Pin60,Pin59,Pin58,Pin57,Pin56,Pin55,Pin54,Pin53,Pin52,Pin51,Pin50,Pin49,Pin48,Pin47,Pin46,,
1,Pin1,,,,,,,,,,,,,,,,Pin45,45
2,Pin2,,,,,,,,,,,,,,,,Pin44,44
3,Pin3,,,,,,,,,,,,,,,,Pin43,43
4,Pin4,,,,,,,,,,,,,,,,Pin42,42
5,Pin5,,,,,,,,,,,,,,,,Pin41,41
6,Pin6,,,,,,,,,,,,,,,,Pin40,40
7,Pin7,,,,,,,,,,,,,,,,Pin39,39
8,Pin8,,,,,,,,,,,,,,,,Pin38,38
9,Pin9,,,,,,,,,,,,,,,,Pin37,37
10,Pin10,,,,,,,,,,,,,,,,Pin36,36
11,Pin11,,,,,,,,,,,,,,,,Pin35,35
12,Pin12,,,,,,,,,,,,,,,,Pin34,34
13,Pin13,,,,,,,,,,,,,,,,Pin33,33
14,Pin14,,,,,,,,,,,,,,,,Pin32,32
15,Pin15,,,,,,,,,,,,,,,,Pin31,31
,,Pin16,Pin17,Pin18,Pin19,Pin20,Pin21,Pin22,Pin23,Pin24,Pin25,Pin26,Pin27,Pin28,Pin29,Pin30,,
,,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,,
```
### 差异明细
| # | 行号(期望) | 内容 | 实际 | 期望 |
|---|-------------|------|------|------|
| 1 | 第1行 | 标题 | `QFN60`(单行,上方引脚混入同行) | `"QFN60 6*6*0.85mm\nxxx\n版本xxxx"`(多行合并单元格,独占整行) |
| 2 | 第2行 | 上方序号 | **缺失** | `,,60,59,58,57,56,55,54,53,52,51,50,49,48,47,46,,` |
| 3 | 第3行 | 上方PinName | **缺失** | `,,Pin60,Pin59,Pin58,...Pin47,Pin46,,` |
| 4 | 第4-18行 | 左右引脚 | 正确 | 正确 |
| 5 | 第19行 | 下方PinName | 正确 | 正确 |
| 6 | 第20行 | 下方序号 | 正确 | 正确 |
| 7 | 总行数 | — | **19 行** | **21 行(缺 2 行)** |
**根因判断:** PinList→PinMAP 生成时上方Top引脚未创建独立的序号行和 PinName 行期望第2-3行而是被错误地合并到了标题行第1行导致输出结构不完整。