Commit 52992564 authored by 赵啸非's avatar 赵啸非

添加水印图片

parent 6bf0d4a1
......@@ -61,9 +61,12 @@ public class TestSendMsgController {
if (FileUtil.exist(annexUrlAllPath)) {
WatermarkImgUtils.addWatermark(annexUrlAllPath,
targetAllPath,
WarterMark, "jpg");
WarterMark, "png");
applyLogEntity.setWatermarkUrl(targetPath);
}else{
applyLogEntity.setWatermarkUrl("");
}
applyLogEntity.setWatermarkUrl(targetPath);
}
}
......@@ -87,9 +90,12 @@ public class TestSendMsgController {
if (FileUtil.exist(originalAllPath)) {
WatermarkImgUtils.addWatermark(originalAllPath,
targetAllPath,
WarterMark, "jpg");
WarterMark, "png");
childLicenseEntity.setOriginalWaterMarkPath(targetPath);
}else{
childLicenseEntity.setOriginalWaterMarkPath("");
}
childLicenseEntity.setOriginalWaterMarkPath(targetPath);
}
}
......@@ -114,9 +120,12 @@ public class TestSendMsgController {
if (FileUtil.exist(originalAllPath)) {
WatermarkImgUtils.addWatermark(originalAllPath,
targetAllPath,
WarterMark, "jpg");
WarterMark, "png");
childLicenseEntity.setCopyWaterMarkPath(targetPath);
}else {
childLicenseEntity.setCopyWaterMarkPath("");
}
childLicenseEntity.setCopyWaterMarkPath(targetPath);
}
}
......
......@@ -155,8 +155,11 @@ public class ChildLicenseServiceImpl extends AbstractCRUDServiceImpl<ChildLicens
if (FileUtil.exist(originalAllPath)) {
WatermarkImgUtils.addWatermark(originalAllPath,
targetAllPath,
WarterMark, "jpg");
WarterMark, "png");
return targetPath;
}else{
return "";
}
return targetPath;
}
}
\ No newline at end of file
......@@ -440,9 +440,11 @@ public class ApplyLogServiceImpl extends AbstractCRUDServiceImpl<ApplyLogDao, Ap
if (FileUtil.exist(annexUrlAllPath)) {
WatermarkImgUtils.addWatermark(annexUrlAllPath,
targetAllPath,
WarterMark, "jpg");
WarterMark, "png");
applyLogEntity.setWatermarkUrl(targetPath);
}else{
applyLogEntity.setWatermarkUrl("");
}
applyLogEntity.setWatermarkUrl(targetPath);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment