18339543638 преди 4 месеца
родител
ревизия
698987291f
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      tr-modules/tr-module-smartFollowUp/src/main/resources/mapper/smart/BizClinicRoomMapper.xml

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

@@ -96,8 +96,8 @@
                 and bcr.clinic_status = #{source.clinicStatus ,jdbcType=VARCHAR}
             </if>
             <if test="source.queryCondition != null and source.queryCondition != ''">
-                and bcr.patient_code LIKE concat('%',#{source.queryCondition,jdbcType=VARCHAR},'%')
-                or bcr.patient_name like concat('%',#{source.queryCondition,jdbcType=VARCHAR},'%')
+                and (bcr.patient_code LIKE concat('%',#{source.queryCondition,jdbcType=VARCHAR},'%')
+                or bcr.patient_name like concat('%',#{source.queryCondition,jdbcType=VARCHAR},'%'))
             </if>
             <if test="source.currentUserId != null and source.currentUserId != ''">
                 and bcrmu.user_id = #{source.currentUserId,jdbcType=VARCHAR}