|
|
@ -216,7 +216,15 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="queryPatintCountByDoctor" resultType="int">
|
|
|
|
<select id="queryPatintCountByDoctor" resultType="int">
|
|
|
|
select COUNT(*) from t_patient_hospital_doctor where hospital_id = #{hospitalId} and doctor_id = #{doctorId}
|
|
|
|
select COUNT(*) from t_patient_hospital_doctor
|
|
|
|
|
|
|
|
<where>
|
|
|
|
|
|
|
|
<if test="hospitalId != null">
|
|
|
|
|
|
|
|
and hospital_id = #{hospitalId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
<if test="doctorId != null">
|
|
|
|
|
|
|
|
and doctor_id = #{doctorId}
|
|
|
|
|
|
|
|
</if>
|
|
|
|
|
|
|
|
</where>
|
|
|
|
</select>
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
|
|
<select id="selectAppDoctorDetailById" resultType="com.ruoyi.system.domain.resp.AppDoctorResp">
|
|
|
|
<select id="selectAppDoctorDetailById" resultType="com.ruoyi.system.domain.resp.AppDoctorResp">
|
|
|
|