|
|
|
@ -16,7 +16,6 @@ import org.slf4j.Logger;
|
|
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import org.springframework.util.StopWatch;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
import java.util.Date;
|
|
|
|
@ -67,7 +66,6 @@ public class QueueService {
|
|
|
|
|
ArchiveMaster archiveMaster = archiveMasterService.findByInpNoAndVisitIdAndIsValid(messageDto.getInpNo(), messageDto.getVisitId());
|
|
|
|
|
Date date = new Date();
|
|
|
|
|
if (archiveMaster != null) {
|
|
|
|
|
long start = System.currentTimeMillis();
|
|
|
|
|
/**2021-1-26 等lis程序升级 去掉*/
|
|
|
|
|
if (Objects.equals(messageDto.getType(), AliasName.INSPECTION_REPORT) && archiveMaster.getArchiveState().equals("已归档")){
|
|
|
|
|
messageSubordinate.setStatus(3);
|
|
|
|
@ -108,7 +106,6 @@ public class QueueService {
|
|
|
|
|
messageSubordinateService.save(messageSubordinate);
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
logger.error("各种已归档保存信息耗时:"+(System.currentTimeMillis() - start));
|
|
|
|
|
String address = messageDto.getReportAddress();
|
|
|
|
|
if (address != null && (!address.equals(""))) {
|
|
|
|
|
long start1 = System.currentTimeMillis();
|
|
|
|
@ -187,7 +184,6 @@ public class QueueService {
|
|
|
|
|
String pdfPath = null;
|
|
|
|
|
String tempPath = "";
|
|
|
|
|
Integer pageNum = 1;
|
|
|
|
|
long start2 = System.currentTimeMillis();
|
|
|
|
|
if (messageDto.getSource().equals(InterfaceName.NURSE_DATA)) {
|
|
|
|
|
// 护理单独做处理
|
|
|
|
|
boolean saveFlag = false;
|
|
|
|
@ -258,7 +254,6 @@ public class QueueService {
|
|
|
|
|
tempPath = messageDto.getDetailType() + "~" + messageDto.getCaptionDateTime() + "~";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
logger.error("医生或护士提交保存耗时:"+(System.currentTimeMillis() - start2));
|
|
|
|
|
long start3 = System.currentTimeMillis();
|
|
|
|
|
File pdfFile = FileUtils.createFile("pdfs", messageDto.getInpNo(), messageDto.getVisitId(), archiveDetail.getId(), tempPath);
|
|
|
|
|
if (pdfFile != null) {
|
|
|
|
|