修改患者档案。

This commit is contained in:
haown 2024-08-06 17:54:07 +08:00
parent 0a903fcc66
commit 0438ebe861

View File

@ -171,22 +171,22 @@
<select id="getPatientList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto" <select id="getPatientList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto"
resultType="com.xinelu.manage.vo.patientinfo.PatientInfoVo"> resultType="com.xinelu.manage.vo.patientinfo.PatientInfoVo">
select p.*, count(p.manage_route_id) as taskNum, SUM(p.task_finish_status) as taskFinishNum, SUM(p.task_execute_status) as taskExecuteNum, select p.*, count(p.manage_route_node_id) as taskNum, SUM(p.task_finish_status) as taskFinishNum, SUM(p.task_execute_status) as taskExecuteNum,
ROUND(SUM(p.task_finish_status) / count(p.id) * 100, 2) as taskFinishRate, ROUND(SUM(p.task_finish_status) / count(p.manage_route_node_id) * 100, 2) as taskFinishRate,
ROUND(SUM(p.task_execute_status) / count(p.id) * 100, 2) as taskExecuteRate ROUND(SUM(p.task_execute_status) / count(p.manage_route_node_id) * 100, 2) as taskExecuteRate
from from
patient_task_view p patient_task_view p
<where> <where>
<if test="residentId != null"> <if test="residentId != null">
and p.resident_id = #{residentId} and p.resident_id = #{residentId}
</if> </if>
<if test="patientName != null and patientName != ''"> <if test="patientName != null and patientName != ''">
and p.patient_name = #{patientName} and p.patient_name = #{patientName}
</if> </if>
<if test="patientPhone != null and patientPhone != ''"> <if test="patientPhone != null and patientPhone != ''">
and p.patient_phone like concat('%', #{patientPhone}, '%') and p.patient_phone like concat('%', #{patientPhone}, '%')
</if> </if>
<if test="cardNo != null and cardNo != ''"> <if test="cardNo != null and cardNo != ''">
and p.card_no = #{cardNo} and p.card_no = #{cardNo}
</if> </if>
<if test="patientType != null and patientType != ''"> <if test="patientType != null and patientType != ''">