提交 9f655ae7 authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 01b654f0
......@@ -145,8 +145,18 @@ public class PatientServiceImpl implements PatientService {
public BaseResponse<PatientSignEntity> getSignedDoctor(SignedDoctorDTO reqVo) {
QueryWrapper<PatientSignEntity> psWrapper = new QueryWrapper<>();
PatientSignEntity patientSign = new PatientSignEntity();
patientSign.setAdmId(reqVo.getAdmId());
if (Objects.nonNull(reqVo.getAdmId())) {
patientSign.setAdmId(reqVo.getAdmId());
}
if (Objects.nonNull(reqVo.getPhone())) {
patientSign.setPatientPhone(reqVo.getPhone());
}
psWrapper.setEntity(patientSign);
if (Objects.nonNull(reqVo.getPhone())) {
psWrapper.orderByDesc("createTime");
psWrapper.last("limit 1");
}
PatientSignEntity patientSignEntity = patientSignMapper.selectOne(psWrapper);
if (null == patientSignEntity) {
throw new BusinessException("未查询到签约医生信息!");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论