Fix Bug #544: fallback修复
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
package com.openhis.application.service;
|
||||
|
||||
import com.openhis.application.domain.entity.QueueInfo;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 智能分诊排队业务接口
|
||||
*
|
||||
* 包含当前排队查询(已修复显示完诊)以及历史排队查询功能。
|
||||
*/
|
||||
public interface QueueService {
|
||||
|
||||
/**
|
||||
* 获取当前排队列表(包括 WAIT、DIAGNOSE、FINISHED)。
|
||||
*
|
||||
* @param departmentId 科室ID,可为空
|
||||
* @return 当前排队患者列表
|
||||
*/
|
||||
List<QueueInfo> getCurrentQueue(Long departmentId);
|
||||
|
||||
/**
|
||||
* 获取历史排队记录(已完成或已取消)。
|
||||
*
|
||||
* @param departmentId 科室ID,可为空
|
||||
* @param startTime 起始时间,可为空
|
||||
* @param endTime 结束时间,可为空
|
||||
* @return 符合条件的历史排队记录
|
||||
*/
|
||||
List<QueueInfo> getHistoryQueue(Long departmentId, Date startTime, Date endTime);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.openhis.application.service.impl;
|
||||
|
||||
import com.openhis.application.domain.entity.QueueInfo;
|
||||
import com.openhis.application.mapper.QueueMapper;
|
||||
import com.openhis.application.service.QueueService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 智能分诊排队服务实现
|
||||
*
|
||||
* 修复 Bug #544:
|
||||
* - 当前排队列表现在会显示 “完诊” 状态的患者;
|
||||
* - 新增历史排队查询接口供前端使用。
|
||||
*/
|
||||
@Service
|
||||
public class QueueServiceImpl implements QueueService {
|
||||
|
||||
private final QueueMapper queueMapper;
|
||||
|
||||
public QueueServiceImpl(QueueMapper queueMapper) {
|
||||
this.queueMapper = queueMapper;
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<QueueInfo> getCurrentQueue(Long departmentId) {
|
||||
return queueMapper.selectCurrentQueue(departmentId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<QueueInfo> getHistoryQueue(Long departmentId, Date startTime, Date endTime) {
|
||||
return queueMapper.selectHistoryQueue(departmentId, startTime, endTime);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user