修改患者档案。
This commit is contained in:
parent
0a903fcc66
commit
0438ebe861
@ -171,22 +171,22 @@
|
||||
|
||||
<select id="getPatientList" parameterType="com.xinelu.manage.dto.patientinfo.PatientInfoDto"
|
||||
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,
|
||||
ROUND(SUM(p.task_finish_status) / count(p.id) * 100, 2) as taskFinishRate,
|
||||
ROUND(SUM(p.task_execute_status) / count(p.id) * 100, 2) as taskExecuteRate
|
||||
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.manage_route_node_id) * 100, 2) as taskFinishRate,
|
||||
ROUND(SUM(p.task_execute_status) / count(p.manage_route_node_id) * 100, 2) as taskExecuteRate
|
||||
from
|
||||
patient_task_view p
|
||||
<where>
|
||||
<if test="residentId != null">
|
||||
and p.resident_id = #{residentId}
|
||||
</if>
|
||||
<if test="patientName != null and patientName != ''">
|
||||
<if test="patientName != null and patientName != ''">
|
||||
and p.patient_name = #{patientName}
|
||||
</if>
|
||||
<if test="patientPhone != null and patientPhone != ''">
|
||||
<if test="patientPhone != null and patientPhone != ''">
|
||||
and p.patient_phone like concat('%', #{patientPhone}, '%')
|
||||
</if>
|
||||
<if test="cardNo != null and cardNo != ''">
|
||||
<if test="cardNo != null and cardNo != ''">
|
||||
and p.card_no = #{cardNo}
|
||||
</if>
|
||||
<if test="patientType != null and patientType != ''">
|
||||
|
||||
Loading…
Reference in New Issue
Block a user