修复严重BUG

This commit is contained in:
Euni4U 2025-04-02 18:42:41 +08:00
parent 91b2ba55e5
commit 6ec5616d5a
3 changed files with 17 additions and 1 deletions

View File

@ -963,7 +963,7 @@ public class InspectPatientController {
InspectPatientSaveReqVO updateReqVO = new InspectPatientSaveReqVO();
updateReqVO.setMedicalSn(medicalSn);
updateReqVO.setHeadPicUrl(base64);
patientService.updatePatientInfo(updateReqVO);
patientService.updatePatientInfoheadurl(updateReqVO);
}
}

View File

@ -74,6 +74,9 @@ public interface InspectPatientService {
* 根据体检编号更新数据
* */
Integer updatePatientInfo(InspectPatientSaveReqVO updateReqVO);
/*
* 更新头像*/
Integer updatePatientInfoheadurl(InspectPatientSaveReqVO updateReqVO);
/**
* 获得患者信息分页

View File

@ -157,6 +157,19 @@ public class InspectPatientServiceImpl implements InspectPatientService {
return patientMapper.update(null, updateWrapper);
}
@Override
public Integer updatePatientInfoheadurl(InspectPatientSaveReqVO updateReqVO) {
LambdaUpdateWrapper<InspectPatientDO> updateWrapper = new LambdaUpdateWrapper<>();
updateWrapper.eq(InspectPatientDO::getMedicalSn, updateReqVO.getMedicalSn());
updateWrapper.set(InspectPatientDO::getHeadPicUrl, updateReqVO.getHeadPicUrl());
return patientMapper.update(null, updateWrapper);
}
@Override
public PageResult<InspectPatientDO> getPatientPage(InspectPatientPageReqVO pageReqVO) {