|
|
|
@ -139,16 +139,16 @@ |
|
|
|
|
|
|
|
<select id="nnicd" resultType="com.ccsens.system.domain.vo.HomeDpVo$Jbph"> |
|
|
|
SELECT |
|
|
|
b.diagnosis_name AS name, |
|
|
|
b.diagnosis_code as code, |
|
|
|
COUNT(b.id) AS value |
|
|
|
b.diagnosis_name AS name, |
|
|
|
b.diagnosis_code as code, |
|
|
|
COUNT(b.id) AS value |
|
|
|
FROM |
|
|
|
pms_patient_body b |
|
|
|
pms_patient_diagnosis b |
|
|
|
LEFT JOIN pms_patient p ON b.patient_id = p.id |
|
|
|
WHERE |
|
|
|
b.diagnosis_name IS NOT NULL |
|
|
|
and diagnosis_name != '' |
|
|
|
and b.del_flag = 0 |
|
|
|
and diagnosis_name != '' |
|
|
|
and b.del_flag = 0 |
|
|
|
<if test="dto.deptId != null"> |
|
|
|
AND p.hospital_id = #{dto.deptId} |
|
|
|
</if> |
|
|
|
@ -159,9 +159,9 @@ |
|
|
|
AND b.create_time <= #{dto.endTime} |
|
|
|
</if> |
|
|
|
GROUP BY |
|
|
|
diagnosis_name |
|
|
|
diagnosis_name |
|
|
|
ORDER BY |
|
|
|
value DESC |
|
|
|
value DESC |
|
|
|
</select> |
|
|
|
|
|
|
|
<select id="nnage" resultType="com.ccsens.system.domain.vo.HomeDpVo$Nlfb"> |
|
|
|
|