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

Merge branch 'test'

...@@ -325,9 +325,11 @@ public class PatientServiceImpl implements PatientService { ...@@ -325,9 +325,11 @@ public class PatientServiceImpl implements PatientService {
log.info("当前排班医生:{}", JSON.toJSONString(scheduleRecordEntities)); log.info("当前排班医生:{}", JSON.toJSONString(scheduleRecordEntities));
if (!CollectionUtils.isEmpty(scheduleRecordEntities)) { if (!CollectionUtils.isEmpty(scheduleRecordEntities)) {
scheduleRecordEntities.stream().filter(scheduleRecordEntity -> !scheduleRecordEntity.getDoctorId().equals(doctorId)).collect(Collectors.toList()); scheduleRecordEntities.stream().filter(scheduleRecordEntity -> scheduleRecordEntity.getDoctorId().equals(doctorId)).collect(Collectors.toList());
} }
log.info("过滤之后的医生:{}", JSON.toJSONString(scheduleRecordEntities));
if (CollectionUtils.isEmpty(scheduleRecordEntities)) { if (CollectionUtils.isEmpty(scheduleRecordEntities)) {
throw new BusinessException("服务时间为08:00-20:00,您发起的咨询暂时没有医生回答,医生上班后会第一时间回复您。"); throw new BusinessException("服务时间为08:00-20:00,您发起的咨询暂时没有医生回答,医生上班后会第一时间回复您。");
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论