fix: 健康管理系统,首页接口代码提交。

This commit is contained in:
tianyongbao
2024-11-17 21:07:53 +08:00
parent cd7299c257
commit 55ef9e5dc4
5 changed files with 130 additions and 9 deletions

View File

@@ -72,4 +72,33 @@
order by hmb."short_name" desc
</select>
<select id="selectHospitalCount" parameterType="HealthRecordDto" resultType="int">
select
count(distinct hospital_name)
from
health_doctor_record hmr
where 1=1
<!-- 数据范围过滤 -->
${params.dataScope}
</select>
<select id="selectDoctorCount" parameterType="HealthRecordDto" resultType="int">
select
count(distinct doctor )
from
health_doctor_record hmr
where 1=1
<!-- 数据范围过滤 -->
${params.dataScope}
</select>
<select id="selectDistinctMedicalCount" parameterType="HealthRecordDto" resultType="int">
select
count(distinct medicine_id )
from
health_mar_record hmr
where 1=1
<!-- 数据范围过滤 -->
${params.dataScope}
</select>
</mapper>