病人信息更新

This commit is contained in:
liuhongrui
2025-02-28 10:43:44 +08:00
parent af8a70ac0c
commit f984aab876
2 changed files with 15 additions and 10 deletions

View File

@@ -42,12 +42,17 @@
<where>
<!-- 如果传入busNo参数且不为空 -->
<if test="busNo != null and busNo != ''">
AND busNo LIKE CONCAT(#{busNo}, '%')
AND pt.busNo LIKE CONCAT('%',#{busNo}, '%')
</if>
<!-- 如果传入name参数且不为空 -->
<if test="name != null and name != ''">
AND name LIKE CONCAT(#{name}, '%')
AND pt.name LIKE CONCAT( '%', #{name}, '%')
</if>
<!-- 如果传入name参数且不为空 -->
<if test="name != null and name != ''">
AND pt.py_str LIKE CONCAT('%',#{name}, '%')
</if>
</where>
ORDER BY pt.bus_no
@@ -62,12 +67,16 @@
<where>
<!-- 如果传入busNo参数且不为空 -->
<if test="busNo != null and busNo != ''">
AND busNo LIKE CONCAT(#{busNo}, '%')
AND pt.busNo LIKE CONCAT('%',#{busNo}, '%')
</if>
<!-- 如果传入name参数且不为空 -->
<if test="name != null and name != ''">
AND name LIKE CONCAT(#{name}, '%')
AND pt.name LIKE CONCAT('%',#{name}, '%')
</if>
<!-- 如果传入name参数且不为空 -->
<if test="name != null and name != ''">
AND pt.py_str LIKE CONCAT('%',#{name}, '%')
</if>
</where>
</select>