提交 a40fcad0 authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 87a1c065
...@@ -217,13 +217,8 @@ public class PatientServiceImpl implements PatientService { ...@@ -217,13 +217,8 @@ public class PatientServiceImpl implements PatientService {
} else { } else {
QueryWrapper<PatientSignEntity> psWrapper = new QueryWrapper<>(); QueryWrapper<PatientSignEntity> psWrapper = new QueryWrapper<>();
PatientSignEntity patientSign = new PatientSignEntity(); PatientSignEntity patientSign = new PatientSignEntity();
if (Objects.nonNull(reqVo.getPhone())) { if (Objects.nonNull(reqVo.getAdmId())) {
patientSign.setPatientPhone(reqVo.getPhone()); patientSign.setAdmId(reqVo.getAdmId());
}
psWrapper.setEntity(patientSign);
if (Objects.nonNull(reqVo.getPhone())) {
psWrapper.orderByDesc("createTime");
psWrapper.last("limit 1");
} }
PatientSignEntity pse = patientSignMapper.selectOne(psWrapper); PatientSignEntity pse = patientSignMapper.selectOne(psWrapper);
if (null == pse) { if (null == pse) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论