From c71d5394a8385fa3644c21061dcc7871f103ff6c Mon Sep 17 00:00:00 2001 From: hujl Date: Thu, 13 Jan 2022 17:31:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3:12=E7=82=B9=E4=B8=8D?= =?UTF-8?q?=E4=B8=BA00=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ann/demo/service/AnalysisService.java | 3 +-- src/main/java/com/ann/demo/utils/DateUtils.java | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/ann/demo/service/AnalysisService.java b/src/main/java/com/ann/demo/service/AnalysisService.java index 5f68569..fcb95ff 100644 --- a/src/main/java/com/ann/demo/service/AnalysisService.java +++ b/src/main/java/com/ann/demo/service/AnalysisService.java @@ -80,7 +80,7 @@ public class AnalysisService { //如果是pet-ct报告 那么还要查出住院次数 UltrasonicReport ultrasonicReport = JSON.parseObject(messageDto.getObject().toString(), UltrasonicReport.class); String authorReportTime = ultrasonicReport.getAuthorReportTime(); - SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddhhmmss"); + SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); Date date = simpleDateFormat.parse(authorReportTime, new ParsePosition(0)); String visitId = archiveMasterRepository.findVisitIdByTimeAndInpNo(date, messageDto.getInpNo()); messageDto.setVisitId(visitId); @@ -88,7 +88,6 @@ public class AnalysisService { archiveMasterId = messageService.getArchiveMasterId(messageDto.getInpNo(), messageDto.getVisitId(),messageDto.getPatientId()); if(archiveMasterId != null){ - if (Objects.equals(messageDto.getEntity(), ExamApply.class.getName())) { // 申请单 ExamApply examApply = JSON.parseObject(messageDto.getObject().toString(), ExamApply.class); textContentTemp = changeApply(examApply,parameter); diff --git a/src/main/java/com/ann/demo/utils/DateUtils.java b/src/main/java/com/ann/demo/utils/DateUtils.java index 623ad89..842d676 100644 --- a/src/main/java/com/ann/demo/utils/DateUtils.java +++ b/src/main/java/com/ann/demo/utils/DateUtils.java @@ -21,7 +21,7 @@ public class DateUtils { public static String getDate() { //日期转换为字符串 LocalDateTime now = LocalDateTime.now(); - DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyyMMddhhmmss"); + DateTimeFormatter format = DateTimeFormatter.ofPattern("yyyyMMddHHmmss"); return now.format(format); }