提交 3cb36f12 authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 21fd0b0e
...@@ -128,22 +128,21 @@ public class PatientServiceImpl implements PatientService { ...@@ -128,22 +128,21 @@ public class PatientServiceImpl implements PatientService {
if (!SignStatus.NORMAL.getValue().equals(reqVo.getSignStatus())) { if (!SignStatus.NORMAL.getValue().equals(reqVo.getSignStatus())) {
Integer signStatus = SignStatus.SIGNED.getValue(); Integer signStatus = SignStatus.SIGNED.getValue();
Integer status = StatusEnum.IN_CONSULTATION.getValue(); Integer status = StatusEnum.IN_CONSULTATION.getValue();
// if (SignStatus.CANCEL.getValue().equals(reqVo.getSignStatus())) { if (SignStatus.SIGNED.getValue().equals(reqVo.getSignStatus())) {
// signStatus = SignStatus.CANCEL.getValue();
// status = StatusEnum.FINISH_APPLY.getValue();
// }
List<PatientSignEntity> patientSignEntities = getPatientSignList(reqVo.getPhone(), reqVo.getPackageOrderId(), List<PatientSignEntity> patientSignEntities = getPatientSignList(reqVo.getPhone(), reqVo.getPackageOrderId(),
signStatus, status); signStatus, status);
if (!patientSignEntities.isEmpty()) { if (!patientSignEntities.isEmpty()) {
if (SignStatus.SIGNED.getValue().equals(reqVo.getSignStatus())) { if (SignStatus.SIGNED.getValue().equals(reqVo.getSignStatus())) {
return BaseResponse.error("已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"); return BaseResponse.error("已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!");
} }
}
} else {
log.info("signCreateTime={}, signStartTime={}, signEndTime={}", signCreateTime, signStartTime, signEndTime); log.info("signCreateTime={}, signStartTime={}, signEndTime={}", signCreateTime, signStartTime, signEndTime);
if (signCreateTime.after(signStartTime) && signCreateTime.before(signEndTime)) { if (signCreateTime.after(signStartTime) && signCreateTime.before(signEndTime)) {
return BaseResponse.error("已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!"); return BaseResponse.error("已经有进行中的签约或者改签医生,不能再进行签约或者改签!!!");
} }
// oldPatientSignEntity = patientSignEntity;
} }
} else { } else {
QueryWrapper<PatientSignEntity> psWrapper = new QueryWrapper<>(); QueryWrapper<PatientSignEntity> psWrapper = new QueryWrapper<>();
PatientSignEntity patientSign = new PatientSignEntity(); PatientSignEntity patientSign = new PatientSignEntity();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论