患者导入修改

This commit is contained in:
zhangheng 2024-12-20 10:35:20 +08:00
parent 5876973e23
commit 94dcfe1712
2 changed files with 3 additions and 3 deletions

View File

@ -166,7 +166,7 @@ public class SystemHomePageServiceImpl implements SystemHomePageService {
if (Objects.nonNull(patientAndNode.getDischargeTime())) {
localDate = patientAndNode.getDischargeTime().plusDays(patientAndNode.getRouteNodeDay());
}
if (Objects.isNull(patientAndNode.getDischargeTime()) && Objects.nonNull(patientAndNode.getVisitDate())) {
if (Objects.isNull(patientAndNode.getDischargeTime()) && Objects.nonNull(patientAndNode.getVisitDate()) && Objects.nonNull(patientAndNode.getRouteNodeDay())) {
localDate = patientAndNode.getVisitDate().plusDays(patientAndNode.getRouteNodeDay());
}
if (Objects.isNull(localDate)) {

View File

@ -553,7 +553,7 @@ public class PatientInfoServiceImpl implements IPatientInfoService {
PatientInfoImportMain patientInfoImportMainSn = new PatientInfoImportMain();
patientInfoImportMainSn.setSn(sn);
patientInfoImportMainSn.setImportStatus(ImportStatusEnum.FINISHED.getInfo());
patientInfoImportMainMapper.updatePatientInfoImportMain(patientInfoImportMainSn);
patientInfoImportMainMapper.updatePatientInfoImportMainImportStatus(patientInfoImportMainSn);
String msg = "已完成数据导入!导入成功" + patientInfoImportList.size() + "条记录失败0条记录";
if (list.size() != patientInfoImportList.size()) {
int i = list.size() - patientInfoImportList.size();
@ -658,7 +658,7 @@ public class PatientInfoServiceImpl implements IPatientInfoService {
PatientInfoImportMain patientInfoImportMainSn = new PatientInfoImportMain();
patientInfoImportMainSn.setSn(patientInfoImportVO.getSn());
patientInfoImportMainSn.setImportStatus(ImportStatusEnum.FINISHED.getInfo());
patientInfoImportMainMapper.updatePatientInfoImportMain(patientInfoImportMainSn);
patientInfoImportMainMapper.updatePatientInfoImportMainImportStatus(patientInfoImportMainSn);
String msg = "已完成数据导入!导入成功" + patientInfoImports.size() + "条记录失败0条记录";
if (patientInfoImportVO.getCount() != patientInfoImports.size()) {
int minus = patientInfoImportVO.getCount() - patientInfoImports.size();