fix: BugFix#339 药房筛选条件失效 - 添加 locationId 过滤条件
- 在 getAdviceBaseInfo 方法中添加 locationId 过滤条件 - 修复药房筛选时返回所有药房数据的问题 - 添加日志记录便于调试
This commit is contained in:
@@ -205,6 +205,11 @@ public class DoctorStationAdviceAppServiceImpl implements IDoctorStationAdviceAp
|
||||
// 构建查询条件
|
||||
QueryWrapper<AdviceBaseDto> queryWrapper = HisQueryUtils.buildQueryWrapper(adviceBaseDto, searchKey,
|
||||
new HashSet<>(Arrays.asList("advice_name", "py_str", "wb_str")), null);
|
||||
// 🔧 BugFix#339: 药房筛选条件失效 - 添加 locationId 过滤条件
|
||||
if (locationId != null) {
|
||||
queryWrapper.eq("location_id", locationId);
|
||||
log.info("BugFix#339: 添加药房筛选条件 locationId={}", locationId);
|
||||
}
|
||||
IPage<AdviceBaseDto> adviceBaseInfo = doctorStationAdviceAppMapper.getAdviceBaseInfo(
|
||||
new Page<>(pageNo, pageSize), PublicationStatus.ACTIVE.getValue(), organizationId,
|
||||
CommonConstants.TableName.MED_MEDICATION_DEFINITION, CommonConstants.TableName.ADM_DEVICE_DEFINITION,
|
||||
|
||||
Reference in New Issue
Block a user