This commit is contained in:
LiJianZhao 2025-04-30 16:39:59 +08:00
parent e35fc0536e
commit 661d0856e2
2 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ public class PatientInfoService extends BaseService {
}
QueryWrapper<PatientInfo> 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());

View File

@ -7,8 +7,8 @@
FROM organization_member AS om LEFT JOIN organization_section AS os ON om.section_id = os.id
<where>
<if test="keyword != null and keyword != ''">
om.name LIKE concat('%', #{keyword}, '%')
or os.name LIKE concat('%', #{keyword}, '%')
(om.name LIKE concat('%', #{keyword}, '%')
or os.name LIKE concat('%', #{keyword}, '%'))
</if>
<if test="role != null">
And om.role = #{role}