导入修改

This commit is contained in:
zhangheng 2026-01-29 09:50:52 +08:00
parent 58f2b05511
commit 601e89dd79

View File

@ -378,7 +378,7 @@ public class PatientInfoServiceImpl implements IPatientInfoService {
return AjaxResult.error("导入数据列表不能为空!"); return AjaxResult.error("导入数据列表不能为空!");
} }
//如果存在 患者姓名或手机号或科室或就诊日期为空的情况直接返回暂时去除时间判断 //如果存在 患者姓名或手机号或科室或就诊日期为空的情况直接返回暂时去除时间判断
List<PatientInfoImport> collect = list.stream().filter(Objects::nonNull).filter(item -> StringUtils.isEmpty(item.getPatientName()) || StringUtils.isEmpty(item.getDepartmentName()) || StringUtils.isEmpty(item.getPatientPhone())).collect(Collectors.toList()); List<PatientInfoImport> collect = list.stream().filter(Objects::nonNull).filter(item -> StringUtils.isEmpty(item.getPatientName()) || StringUtils.isEmpty(item.getDeptAlias()) || StringUtils.isEmpty(item.getPatientPhone())).collect(Collectors.toList());
if (CollectionUtils.isNotEmpty(collect)) { if (CollectionUtils.isNotEmpty(collect)) {
return AjaxResult.error("用户信息不完整,姓名、联系电话、科室均不能为空,请完善后重试;"); return AjaxResult.error("用户信息不完整,姓名、联系电话、科室均不能为空,请完善后重试;");
} }