From 5818cf14e2e53500baaca22c4871cd2f8f95481b Mon Sep 17 00:00:00 2001 From: zhangheng <3226558941@qq.com> Date: Mon, 2 Dec 2024 14:23:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=A3=E8=80=85=E5=AF=BC=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../service/patientinfo/impl/PatientInfoServiceImpl.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientinfo/impl/PatientInfoServiceImpl.java b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientinfo/impl/PatientInfoServiceImpl.java index 34493fd8..c9b414cd 100644 --- a/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientinfo/impl/PatientInfoServiceImpl.java +++ b/postdischarge-manage/src/main/java/com/xinelu/manage/service/patientinfo/impl/PatientInfoServiceImpl.java @@ -389,7 +389,6 @@ public class PatientInfoServiceImpl implements IPatientInfoService { if (Objects.nonNull(equalsDepartment.getId())) { patientInfoImport.setDepartmentId(equalsDepartment.getId()); patientInfoImport.setDepartmentName(patientInfoImport.getDepartmentName()); - patientInfoImportList.add(patientInfoImport); } else { DeptAliasVO deptAliasVO = new DeptAliasVO(); deptAliasVO.setSn(sn); @@ -402,6 +401,7 @@ public class PatientInfoServiceImpl implements IPatientInfoService { deptAliasVO.setDeptAlias(patientInfoImport.getDeptAlias()); deptAliasVOS.add(deptAliasVO); } + patientInfoImportList.add(patientInfoImport); } //组装返回数据 List patientInfoImports = new ArrayList<>(patientInfoImportList); @@ -427,7 +427,7 @@ public class PatientInfoServiceImpl implements IPatientInfoService { patientInfoImportMainMapper.insertPatientInfoImportMain(patientInfoImportMain); //科室名称全符合新增患者表,否则返回数据 if (CollectionUtils.isNotEmpty(deptAliasVOS)) { - return AjaxResult.success("科室名称不存在", patientInfoImportVO); + return AjaxResult.error("科室名称不存在", patientInfoImportVO); } else { //新增患者表 int i = patientInfoMapper.insertPatientInfoList(patientInfoImportList);