Files
tms-erp-api/blade-service
weicw-dshsa a8808942a3 🐛 修复评分量化表导入未整批回滚(按评定表分组粒度)
问题:CreditScoreQuantificationServiceImpl.importCreditScoreQuantification
循环单位是「评定表名称」分组(每分组一次 submit,写主表+项目+选项等多表),
异常被 catch 吞掉后正常 return,Spring 照常提交——失败分组之前的
正确分组已经落库。

改动:
- 服务层:任一分组失败、errorList 非空时抛 ImportFailureException
  (org.springblade.common.excel)触发整批回滚,失败分组之前已 submit
  的正确分组一起退掉。失败明细粒度保留既有行为:覆盖失败分组的全部行。
  「评定表名称」为空的行不走 submit、保持早退标错路径。
- 控制器:改 catch 异常导出(exportFailureReasonOnly)+ 补上传文件校验。

验证:mvn install -DskipTests 通过;评分量化表回归 15/15
(tests/fixtures/credit-score/,含 02_后组失败前组正确_应零写入)。
另确认既有语义:与库中重名的分组走覆盖式更新(saveOrUpdate),非错误。
2026-09-25 08:20:06 +08:00
..
2026-07-10 22:08:46 +08:00
2026-08-18 15:18:15 +08:00
2026-09-20 16:36:31 +08:00
2026-08-04 02:49:59 +08:00