Commit 5b690a13 authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent 8dd0842d
...@@ -48,6 +48,8 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao ...@@ -48,6 +48,8 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao
if (!FileUtil.getSuffix(entity.getFilePath()).equals("zip")) { if (!FileUtil.getSuffix(entity.getFilePath()).equals("zip")) {
throw new AppException("部署只支持zip文件!"); throw new AppException("部署只支持zip文件!");
} }
log.info("realFilePath:"+realFilePath);
log.info("targetPath:"+targetPath + fileNewName);
//移动文件并重命名 //移动文件并重命名
FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true); FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true);
...@@ -76,6 +78,8 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao ...@@ -76,6 +78,8 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao
if (!FileUtil.getSuffix(entity.getFilePath()).equals("zip")) { if (!FileUtil.getSuffix(entity.getFilePath()).equals("zip")) {
throw new AppException("部署只支持zip文件!"); throw new AppException("部署只支持zip文件!");
} }
log.info("realFilePath:"+realFilePath);
log.info("targetPath:"+targetPath + fileNewName);
//移动文件并重命名 //移动文件并重命名
FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true); FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true);
entity.setFilePath(targetPath + fileNewName); entity.setFilePath(targetPath + fileNewName);
......
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