Compare commits

...

2 Commits

Author SHA1 Message Date
17d29fc21d fix(#758): DictUtils 移除 fastjson2,统一使用 jackson
- com.alibaba.fastjson2.JSONArray → jackson ObjectMapper
- com.alibaba.fastjson2.JSON.toJSONString/parseObject → mapper.writeValueAsString/readValue
- 项目统一使用 jackson,不再依赖 fastjson2
2026-06-13 13:51:29 +08:00
0417c42aea docs: Bug #752 修复报告归档 2026-06-13 13:23:40 +08:00
2 changed files with 56 additions and 7 deletions

50
docs/bug-fixes/bug-752.md Normal file
View File

@@ -0,0 +1,50 @@
# Bug #752 修复报告
## 基本信息
- **标题**: Bug #752 测试完成,请验收。提出人: chenxj。
- **提出人**: chenxj
- **修复时间**: 13:23:23 ~ 13:23:14
- **修复耗时**: 1199.6s
- **Commit**: `79214ee8b`
- **测试结果**: ❌ FAIL
## 根因分析
前端构建成功。验证完成。
---
## Bug #752 修复总结
### 根因
`examinationApplication.vue` 中所有 checkbox 组件的 `:true-value="true"` 使用了 JavaScript 布尔值 `true`,但后端 `ExamApply` 实体的 `isUrgent``isCharged``isRefunded`、`isExec | 文件变更: 无变更 | 阶段: generator:PASS reviewer:PASS qa:PASS verifier:PASS
## 修复文件
.../main/java/com/core/common/utils/DictUtils.java | 40 ++-
.../healthlink/his/common/aspectj/DictAspect.java | 20 +-
package-lock.json | 381 ---------------------
.../PatientManagement/OutpatientRecord.vue | 69 ----
## 流程时间线
| 时间 | 智能体 | 事件 | 状态 | 耗时 |
|------|--------|------|------|------|
| 22:09:23 | zhugeliang | pre_analyze_done | ✅ | 0.0s |
| 08:06:52 | zhaoyun | fix_start | ⏳ | 0.0s |
| 08:13:07 | zhaoyun | fix_retry | ❓ | 0.0s |
| 08:19:02 | zhaoyun | fix_retry | ❓ | 0.0s |
| 08:24:32 | zhaoyun | fix_retry | ❓ | 0.0s |
| 08:31:14 | zhaoyun | fix_done | ❌ | 340.9s |
| 08:31:16 | zhaoyun | fix_start | ⏳ | 0.0s |
| 08:37:06 | zhaoyun | fix_retry | ❓ | 0.0s |
| 08:43:01 | zhaoyun | fix_retry | ❓ | 0.0s |
| 08:48:57 | zhaoyun | fix_retry | ❓ | 0.0s |
| 08:55:04 | zhaoyun | fix_done | ❌ | 281.7s |
| 13:02:21 | guanyu | fix_start | ⏳ | 0.0s |
| 13:23:14 | guanyu | fix_done | ✅ | 1199.6s |
| 13:23:19 | guanyu | verification | ❌ | 4.9s |
| 13:23:23 | xunyu | db_review_done | ✅ | 0.0s |
| 13:23:23 | guanyu | fix_start | ⏳ | 0.0s |
| 13:23:24 | zhugeliang | analyze_done | ✅ | 0.0s |
| 13:23:40 | chenlin | doc_done | ✅ | <1s |
## 全流程
诸葛亮分析 guanyu 修复 张飞测试 华佗验收 陈琳归档

View File

@@ -1,6 +1,7 @@
package com.core.common.utils;
import com.alibaba.fastjson2.JSONArray;
import com.fasterxml.jackson.core.type.TypeReference;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.core.common.constant.CacheConstants;
import com.core.common.core.domain.entity.SysDictData;
import com.core.common.core.redis.RedisCache;
@@ -46,19 +47,17 @@ public class DictUtils {
if (cached == null) {
return null;
}
if (cached instanceof JSONArray arrayCache) {
return arrayCache.toList(SysDictData.class);
}
if (cached instanceof List<?> list) {
// Redis缓存可能已反序列化为List尝试逐个转换
java.util.ArrayList<SysDictData> result = new java.util.ArrayList<>(list.size());
ObjectMapper mapper = SpringUtils.getBean(ObjectMapper.class);
for (Object item : list) {
if (item instanceof SysDictData dictData) {
result.add(dictData);
} else {
// 尝试通过JSON转换
String json = com.alibaba.fastjson2.JSON.toJSONString(item);
result.add(com.alibaba.fastjson2.JSON.parseObject(json, SysDictData.class));
// 通过 Jackson JSON 转换
String json = mapper.writeValueAsString(item);
result.add(mapper.readValue(json, SysDictData.class));
}
}
return result;