diff --git a/src/main/java/com/syjiaer/clinic/server/service/patient/PatientInfoService.java b/src/main/java/com/syjiaer/clinic/server/service/patient/PatientInfoService.java index b3f75b2..d2a2c2d 100644 --- a/src/main/java/com/syjiaer/clinic/server/service/patient/PatientInfoService.java +++ b/src/main/java/com/syjiaer/clinic/server/service/patient/PatientInfoService.java @@ -57,7 +57,7 @@ public class PatientInfoService extends BaseService { } QueryWrapper queryWrapper = new QueryWrapper<>(); - queryWrapper.eq("cert_no", patientInfo.getPhone()); + queryWrapper.eq("cert_no", patientInfo.getCertNo()); PatientInfo dbInfo = patientInfoMapper.selectOne(queryWrapper); if (dbInfo != null){ patientInfo.setId(dbInfo.getId()); diff --git a/src/main/resources/xml/OrganizationMemberMapper.xml b/src/main/resources/xml/OrganizationMemberMapper.xml index c1a5e1d..24443d9 100644 --- a/src/main/resources/xml/OrganizationMemberMapper.xml +++ b/src/main/resources/xml/OrganizationMemberMapper.xml @@ -7,8 +7,8 @@ FROM organization_member AS om LEFT JOIN organization_section AS os ON om.section_id = os.id - om.name LIKE concat('%', #{keyword}, '%') - or os.name LIKE concat('%', #{keyword}, '%') + (om.name LIKE concat('%', #{keyword}, '%') + or os.name LIKE concat('%', #{keyword}, '%')) And om.role = #{role}