فهرست منبع

fix
患者列表

lifang 3 ماه پیش
والد
کامیت
f33e683c30
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizPatientMapper.xml

+ 2 - 1
tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizPatientMapper.xml

@@ -84,6 +84,7 @@
         biz_clinic_room_doctor_user bcrmu
         ON bcr1.ID = bcrmu.clinic_room_id
         <where>
+            bcr1.deleted=0
             <if test="query.currentUserId != null and query.currentUserId != ''">
                 AND bcrmu.user_id = #{query.currentUserId,jdbcType=VARCHAR}
             </if>
@@ -94,7 +95,7 @@
         ON
         tmp2.patient_id = bp.id
         <where>
-             bcr1.deleted=0 and tmp2.c >0
+              tmp2.c >0
             <if test="query.queryCondition != null and query.queryCondition != ''">
                 and (
                 bp.patient_code LIKE concat('%',#{query.queryCondition,jdbcType=VARCHAR},'%')