Prechádzať zdrojové kódy

查询sql报错处理

wangzl 5 mesiacov pred
rodič
commit
cd748a3510

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

@@ -105,7 +105,7 @@
             </if>
             <if test="source.queryCondition != null and source.queryCondition != ''">
                 and bcr.patient_code LIKE concat('%',#{source.queryCondition,jdbcType=VARCHAR},'%')
-                or bp.name like concat('%',#{source.queryCondition,jdbcType=VARCHAR},'%')
+                or bp.patient_name like concat('%',#{source.queryCondition,jdbcType=VARCHAR},'%')
             </if>
         </where>
     </select>