From 706fde37251156ec449e5f18affc4a815d986207 Mon Sep 17 00:00:00 2001 From: "jian.wang" <824612544@qq.com> Date: Fri, 24 May 2024 13:44:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9pdf=E6=89=93=E5=8D=B0?= =?UTF-8?q?=E8=B7=AF=E5=BE=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/emr/dao/CommomMapper.java | 3 +- .../java/com/emr/service/CommomService.java | 20 ++++++---- .../approveManageList174.jsp | 1 + .../approveManageList/approveManageList174.js | 40 +++++++++++-------- .../templateSearch/searchCommomMethodqf.js | 7 ++-- src/main/webapp/static/pdfjs/Print.js | 2 +- 6 files changed, 43 insertions(+), 30 deletions(-) diff --git a/src/main/java/com/emr/dao/CommomMapper.java b/src/main/java/com/emr/dao/CommomMapper.java index d5a9c04..3130d0d 100644 --- a/src/main/java/com/emr/dao/CommomMapper.java +++ b/src/main/java/com/emr/dao/CommomMapper.java @@ -1,11 +1,13 @@ package com.emr.dao; +import com.alibaba.fastjson.JSONObject; import com.emr.vo.commomSearch.CommomTree; import com.emr.vo.commomSearch.CommomVo; import com.emr.vo.FontVo.FontCommom; import org.apache.ibatis.annotations.Param; import java.util.List; +import java.util.Map; public interface CommomMapper { /** @@ -149,5 +151,4 @@ public interface CommomMapper { * @return */ CommomVo getCommomTableList(@Param("inpatientNo") String inpatientNo, @Param("disDate") String disDate); - } \ No newline at end of file diff --git a/src/main/java/com/emr/service/CommomService.java b/src/main/java/com/emr/service/CommomService.java index 3f4ad11..ae10872 100644 --- a/src/main/java/com/emr/service/CommomService.java +++ b/src/main/java/com/emr/service/CommomService.java @@ -705,19 +705,23 @@ public class CommomService { root = selectRootByNotWater(WATERTIFTOJPGPATH); outSrc = EMRRECORDJSP + File.separator + root + "/jiashi/tifToJpgLoad/" + format1 + ".jpg"; } else { - srcPath = srcPath.replaceAll("\\\\","/"); - if(srcPath.startsWith("/")){ + String driveLetterPath = srcPath.replaceAll("\\\\", "/"); + if(driveLetterPath.startsWith("/")){ //截取字符串为磁盘路径 - int thirdBackslashIndex = srcPath.indexOf('/', srcPath.indexOf('/', srcPath.indexOf('/') + 1) + 1); + int thirdBackslashIndex = driveLetterPath.indexOf('/', driveLetterPath.indexOf('/', driveLetterPath.indexOf('/') + 1) + 1); if (thirdBackslashIndex != -1) { - srcPath = srcPath.substring(thirdBackslashIndex+1); + driveLetterPath = driveLetterPath.substring(thirdBackslashIndex+1); } //将原图片地址转换成映射地址 //获取盘符并转换映射地址的头部地址 - root = selectRootByNotWater(srcPath); - //获取盘符后面的地址 - picPath = srcPath.substring(srcPath.indexOf('/')); - outSrc = EMRRECORDJSP + File.separator + root + File.separator + picPath; + root = selectRootByNotWater(driveLetterPath); + if(root == null){ + outSrc = srcPath; + }else{ + //获取盘符后面的地址 + picPath = driveLetterPath.substring(driveLetterPath.indexOf('/')); + outSrc = EMRRECORDJSP + File.separator + root + picPath; + } }else{ root = selectRootByNotWater(srcPath); //获取盘符后面的地址 diff --git a/src/main/webapp/WEB-INF/views/approveManage/approveManageList/approveManageList174.jsp b/src/main/webapp/WEB-INF/views/approveManage/approveManageList/approveManageList174.jsp index 6d6d016..4fda212 100644 --- a/src/main/webapp/WEB-INF/views/approveManage/approveManageList/approveManageList174.jsp +++ b/src/main/webapp/WEB-INF/views/approveManage/approveManageList/approveManageList174.jsp @@ -104,6 +104,7 @@
+