fix(datadictionary): 修复查询条件中的字段别名问题 BUG#183

- 修正DiagTreatMAppServiceImpl中searchKey字段添加表别名T1前缀
- 移除ActivityDefinitionManageMapper.xml中不必要的字段名替换逻辑
- 确保查询条件正确使用表别名避免字段冲突
- 保持租户ID和状态枚举的别名替换功能正常工作
This commit is contained in:
2026-03-17 17:28:56 +08:00
parent 8a7d2abb4a
commit 32f7077fc1
2 changed files with 3 additions and 3 deletions

View File

@@ -202,7 +202,7 @@ public class DiagTreatMAppServiceImpl implements IDiagTreatMAppService {
// 构建查询条件
QueryWrapper<DiagnosisTreatmentDto> queryWrapper = HisQueryUtils.buildQueryWrapper(DiagnosisTreatmentSelParam,
searchKey, new HashSet<>(Arrays.asList("bus_no", "name", "py_str", "wb_str")), request);
searchKey, new HashSet<>(Arrays.asList("T1.bus_no", "T1.name", "T1.py_str", "T1.wb_str")), request);
// 如果需要按医保类型过滤如挂号费类型13添加带表别名的条件
if (ybTypeValue != null) {