|
@@ -98,6 +98,7 @@
|
|
|
bcr.assess_count
|
|
bcr.assess_count
|
|
|
FROM biz_clinic_room bcr
|
|
FROM biz_clinic_room bcr
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ and bcr.deleted = 0
|
|
|
<if test="source.clinicStatus != null and source.clinicStatus != ''">
|
|
<if test="source.clinicStatus != null and source.clinicStatus != ''">
|
|
|
and bcr.clinic_status = #{source.clinicStatus ,jdbcType=VARCHAR}
|
|
and bcr.clinic_status = #{source.clinicStatus ,jdbcType=VARCHAR}
|
|
|
</if>
|
|
</if>
|
|
@@ -189,6 +190,7 @@
|
|
|
LEFT JOIN biz_clinic_room_wx_user bcrwu ON bcr.id = bcrwu.clinic_room_id
|
|
LEFT JOIN biz_clinic_room_wx_user bcrwu ON bcr.id = bcrwu.clinic_room_id
|
|
|
LEFT JOIN biz_clinic_room_doctor_user bcrdu on bcr.id = bcrdu.clinic_room_id
|
|
LEFT JOIN biz_clinic_room_doctor_user bcrdu on bcr.id = bcrdu.clinic_room_id
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ and bcr.deleted = 0
|
|
|
<if test="queryDTO.deptId != null and queryDTO.deptId != ''">
|
|
<if test="queryDTO.deptId != null and queryDTO.deptId != ''">
|
|
|
and bcr.dept_id = #{queryDTO.deptId}
|
|
and bcr.dept_id = #{queryDTO.deptId}
|
|
|
</if>
|
|
</if>
|
|
@@ -221,6 +223,7 @@
|
|
|
biz_clinic_room bcr
|
|
biz_clinic_room bcr
|
|
|
JOIN biz_clinic_room_doctor_user bcrdu ON bcr.ID = bcrdu.clinic_room_id
|
|
JOIN biz_clinic_room_doctor_user bcrdu ON bcr.ID = bcrdu.clinic_room_id
|
|
|
<where>
|
|
<where>
|
|
|
|
|
+ and bcr.deleted = 0
|
|
|
<if test="patientId != null and patientId != ''">
|
|
<if test="patientId != null and patientId != ''">
|
|
|
and bcr.patient_id = #{patientId}
|
|
and bcr.patient_id = #{patientId}
|
|
|
</if>
|
|
</if>
|