Commit 245cfa8d authored by 赵啸非's avatar 赵啸非

产品版本更新分站点

parent 75b5bb66
...@@ -182,6 +182,8 @@ public class ProductVersionServiceImpl extends AbstractCRUDServiceImpl<ProductVe ...@@ -182,6 +182,8 @@ public class ProductVersionServiceImpl extends AbstractCRUDServiceImpl<ProductVe
String targetFilePath = uploadService.getFilePath(sitePdu.getSiteCode() + "/" + mainName); String targetFilePath = uploadService.getFilePath(sitePdu.getSiteCode() + "/" + mainName);
FileUtil.copyFile(sourceFilePath, targetFilePath, StandardCopyOption.REPLACE_EXISTING); FileUtil.copyFile(sourceFilePath, targetFilePath, StandardCopyOption.REPLACE_EXISTING);
productVersion.setFilePath(targetFilePath); productVersion.setFilePath(targetFilePath);
}else {
productVersion.setFilePath("");
} }
this.save(productVersion, context); this.save(productVersion, context);
} }
......
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