unis_sip/.workbuddy/memory/2026-09-09.md

35 lines
2.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 2026-09-09 工作日志
## 全量改动复核 + 集成测试(不动代码)
**改动规模**65 文件、+427 / -283 行
**集成测试结果**
- 后端:`mvn compile -DskipTests`JAVA_HOME=Corretto 1.8.0_442**BUILD SUCCESS**7 模块 0 ERROR
- 前端31 个 Vue/JS 文件用 `@vue/compiler-sfc` 解析 → **31 ok, 0 fail**
**本轮发现**
1. `OmsTicketBill.java:70` 税额已加 `decimalFormat = "#,##0.00"`(用户修复)
2. SQL 文件名 `20290904``20260904`(已改),但文件内注释仍写 `2029-09-04`
3. `.gitignore` 已加 `.DS_Store`(用户修复)
4. `ruoyi-admin/.DS_Store` 仍被 `git ls-files` 跟踪,需 `git rm --cached` 才能彻底忽略
**确认正确的覆盖**
- `inventory/inner/index.vue`、`vendorConfirm.vue` — 本次新加 formatter 没问题
- `InventoryInfoExcelDto.java`、`WarehouseInnerExcelDto.java` — 入库价已加 decimalFormat
- `ProductInfo.java` + `ProductInfoMapper.xml` — preSystemType 字段前后端完整配套
- `OmsInventoryInnerServiceImpl.java` — 三处修复NPE、payConfigDay 拆箱、税金额)均正确
**仍未修的小遗留**
- `ApplyInvoice.vue:122/129/143` v-else 裸显示(用户上一轮已知,影响小)
- 14 处 `formatCurrency(x.toFixed(2))` 双重格式化(冗余但正确)
- 7+ 处局部 `formatAmount/formatAmountNumber` 副本(存量代码,本次未改)
**体系性问题(与本次改动范围无关)**
- 项目里 7+ 处组件局部的 `formatAmount` 副本,行为与全局 `formatCurrency` 略有差异null 显示空 vs '0.00'),建议后续收敛
- `formatCurrency('abc')` 会显示 "NaN",建议加 `Number.isNaN` 保护
**提交前清单**
- [ ]`sql/20260904update.sql` 注释里的 `2029-09-04``2026-09-04`
- [ ] `git rm --cached ruoyi-admin/.DS_Store`.gitignore 已加,但已跟踪文件需手动移除)
- [ ] 可选:`git checkout ruoyi-admin/src/main/resources/logback.xml` 恢复个人本地路径