Просмотр исходного кода

解决数据进行软删之后还能查询到问题

wangzl 5 месяцев назад
Родитель
Сommit
3678956d71

+ 3 - 0
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizClinicRoomMapper.xml

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