From 2b0d8a963f655cd16df6a7e0bc413cc9890f761a Mon Sep 17 00:00:00 2001 From: liuhongrui Date: Fri, 28 Feb 2025 11:05:19 +0800 Subject: [PATCH] up --- .../patientmanage/PatientManageMapper.xml | 39 +++++++++++++------ 1 file changed, 28 insertions(+), 11 deletions(-) diff --git a/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml b/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml index e1218deb..74cd19fe 100644 --- a/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml +++ b/openhis-server/openhis-application/src/main/resources/mapper/patientmanage/PatientManageMapper.xml @@ -47,12 +47,20 @@ - AND pt.name LIKE CONCAT( '%', #{name}, '%') - - - - - AND pt.py_str LIKE CONCAT('%',#{name}, '%') + + + + AND pt.name LIKE CONCAT('%', #{name}, '%') + + + + AND pt.py_str LIKE CONCAT('%', #{name}, '%') + + + + AND (pt.name LIKE CONCAT('%', #{name}, '%') OR pt.py_str LIKE CONCAT('%', #{name}, '%')) + + ORDER BY pt.bus_no @@ -72,11 +80,20 @@ - AND pt.name LIKE CONCAT('%',#{name}, '%') - - - - AND pt.py_str LIKE CONCAT('%',#{name}, '%') + + + + AND pt.name LIKE CONCAT('%', #{name}, '%') + + + + AND pt.py_str LIKE CONCAT('%', #{name}, '%') + + + + AND (pt.name LIKE CONCAT('%', #{name}, '%') OR pt.py_str LIKE CONCAT('%', #{name}, '%')) + +