fix(datadictionary): 修复查询条件中的字段别名问题 BUG#183
- 修正DiagTreatMAppServiceImpl中searchKey字段添加表别名T1前缀 - 移除ActivityDefinitionManageMapper.xml中不必要的字段名替换逻辑 - 确保查询条件正确使用表别名避免字段冲突 - 保持租户ID和状态枚举的别名替换功能正常工作
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user