|
|
|
|
@ -655,7 +655,13 @@ public class CommomService {
|
|
|
|
|
} else {
|
|
|
|
|
//需要水印
|
|
|
|
|
//组织加水印后图片存放目录
|
|
|
|
|
String waterPicRoot = WATERPICPATH + patientId + File.separator + sourceList[i] + File.separator;//D:/jiashi/reload/patientId/1/
|
|
|
|
|
String waterPicRoot ="";
|
|
|
|
|
if(srcPath.contains("/mnt/share")){
|
|
|
|
|
waterPicRoot = "/mnt/share/jiashi/reload/"+ patientId + File.separator + sourceList[i] + File.separator;//D:/jiashi/reload/patientId/1/
|
|
|
|
|
}else{
|
|
|
|
|
waterPicRoot = WATERPICPATH + patientId + File.separator + sourceList[i] + File.separator;//D:/jiashi/reload/patientId/1/
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
//目录不存在则创建
|
|
|
|
|
if (!new File(waterPicRoot).isDirectory()) {
|
|
|
|
|
new File(waterPicRoot).mkdirs();
|
|
|
|
|
@ -673,6 +679,9 @@ public class CommomService {
|
|
|
|
|
}
|
|
|
|
|
//组织输出地址
|
|
|
|
|
String root = selectRootByNotWater(WATERPICPATH);
|
|
|
|
|
if(srcPath.contains("/mnt/share")){
|
|
|
|
|
root = "picShare";
|
|
|
|
|
}
|
|
|
|
|
outSrc = EMRRECORDJSP + File.separator + root + "/jiashi/reload/" + patientId + File.separator + sourceList[i] + File.separator + nameList[i];
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
@ -710,7 +719,13 @@ public class CommomService {
|
|
|
|
|
//获取盘符并转换映射地址的头部地址
|
|
|
|
|
root = selectRootByNotWater(driveLetterPath);
|
|
|
|
|
if (root == null) {
|
|
|
|
|
outSrc = srcPath;
|
|
|
|
|
if(srcPath.contains("/mnt/share")){
|
|
|
|
|
srcPath = srcPath.replace("/mnt/share", "picShare");
|
|
|
|
|
outSrc = EMRRECORDJSP + File.separator + srcPath;
|
|
|
|
|
}else{
|
|
|
|
|
outSrc = srcPath;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
//获取盘符后面的地址
|
|
|
|
|
picPath = driveLetterPath.substring(driveLetterPath.indexOf('/'));
|
|
|
|
|
|