feat(consultation): 添加会诊ID查询功能
- 在前端表单中新增会诊ID输入框用于查询过滤 - 更新查询参数对象以包含consultationId字段 - 在后端服务中实现会诊ID的模糊匹配查询逻辑 - 将会诊ID查询条件集成到现有的查询构建器中 - 保持与其他查询条件的兼容性以支持组合筛选
This commit is contained in:
@@ -186,6 +186,11 @@ public class ConsultationAppServiceImpl implements IConsultationAppService {
|
||||
wrapper.like(ConsultationRequest::getPatientName, dto.getPatientName());
|
||||
}
|
||||
|
||||
// 会诊ID查询(支持模糊匹配)
|
||||
if (StringUtils.hasText(dto.getConsultationId())) {
|
||||
wrapper.like(ConsultationRequest::getConsultationId, dto.getConsultationId());
|
||||
}
|
||||
|
||||
// 按创建时间倒序排列
|
||||
wrapper.orderByDesc(ConsultationRequest::getConsultationRequestDate);
|
||||
|
||||
@@ -240,6 +245,11 @@ public class ConsultationAppServiceImpl implements IConsultationAppService {
|
||||
wrapper.like(ConsultationRequest::getPatientName, dto.getPatientName());
|
||||
}
|
||||
|
||||
// 会诊ID查询(支持模糊匹配)
|
||||
if (StringUtils.hasText(dto.getConsultationId())) {
|
||||
wrapper.like(ConsultationRequest::getConsultationId, dto.getConsultationId());
|
||||
}
|
||||
|
||||
// 按创建时间倒序排列
|
||||
wrapper.orderByDesc(ConsultationRequest::getConsultationRequestDate);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user