Fix Bug #544: AI修复
This commit is contained in:
@@ -2,17 +2,20 @@ package com.openhis.application.service.impl;
|
||||
|
||||
import com.github.pagehelper.PageHelper;
|
||||
import com.github.pagehelper.PageInfo;
|
||||
import com.openhis.application.domain.dto.TriageQueueQueryDto;
|
||||
import com.openhis.application.domain.entity.TriageQueue;
|
||||
import com.openhis.application.domain.dto.QueuePatientDto;
|
||||
import com.openhis.application.mapper.TriageQueueMapper;
|
||||
import com.openhis.application.service.TriageQueueService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 智能分诊队列业务实现
|
||||
* 修复 Bug #544:移除完诊状态硬编码过滤,支持按时间范围查询历史队列
|
||||
*
|
||||
* 修复 Bug #544:
|
||||
* 1. 移除对 COMPLETED 状态的隐式过滤,允许查询全流程记录。
|
||||
* 2. 支持按 startDate/endDate 范围检索历史队列。
|
||||
*/
|
||||
@Service
|
||||
public class TriageQueueServiceImpl implements TriageQueueService {
|
||||
@@ -24,10 +27,13 @@ public class TriageQueueServiceImpl implements TriageQueueService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public PageInfo<TriageQueue> queryQueueList(TriageQueueQueryDto queryDto) {
|
||||
PageHelper.startPage(queryDto.getPageNum(), queryDto.getPageSize());
|
||||
// 移除原有的 status != 'COMPLETED' 过滤逻辑,完整透传查询条件至 Mapper
|
||||
List<TriageQueue> list = triageQueueMapper.selectQueueList(queryDto);
|
||||
public PageInfo<QueuePatientDto> queryQueueList(Map<String, Object> params) {
|
||||
int pageNum = (int) params.getOrDefault("pageNum", 1);
|
||||
int pageSize = (int) params.getOrDefault("pageSize", 20);
|
||||
|
||||
PageHelper.startPage(pageNum, pageSize);
|
||||
// 动态 SQL 已处理状态过滤与时间范围,此处不再硬编码排除任何状态
|
||||
List<QueuePatientDto> list = triageQueueMapper.selectQueueList(params);
|
||||
return new PageInfo<>(list);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user