Fix Bug #544: AI修复
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.openhis.application.mapper.TriageQueueMapper">
|
||||
|
||||
<resultMap id="TriageQueueResult" type="com.openhis.application.domain.entity.TriageQueue">
|
||||
<id property="id" column="id"/>
|
||||
<result property="patientId" column="patient_id"/>
|
||||
<result property="patientName" column="patient_name"/>
|
||||
<result property="status" column="status"/>
|
||||
<result property="deptId" column="dept_id"/>
|
||||
<result property="queueTime" column="queue_time"/>
|
||||
</resultMap>
|
||||
|
||||
<!-- 修复 Bug #544:移除 status != 3 或 status IN (...) 的过滤逻辑,开放全状态查询 -->
|
||||
<select id="selectQueueByDeptAndDate" resultMap="TriageQueueResult">
|
||||
SELECT
|
||||
id, patient_id, patient_name, status, dept_id, queue_time
|
||||
FROM his_triage_queue
|
||||
<where>
|
||||
<if test="deptId != null">
|
||||
AND dept_id = #{deptId}
|
||||
</if>
|
||||
<if test="startTime != null">
|
||||
AND queue_time >= #{startTime}
|
||||
</if>
|
||||
<if test="endTime != null">
|
||||
AND queue_time <= #{endTime}
|
||||
</if>
|
||||
AND del_flag = 0
|
||||
</where>
|
||||
ORDER BY queue_time ASC
|
||||
</select>
|
||||
|
||||
</mapper>
|
||||
Reference in New Issue
Block a user