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 @@
+