Commit 3aefa27a authored by 赵啸非's avatar 赵啸非

添加批量激活设备

parent 7e2b4d31
...@@ -50,6 +50,9 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao ...@@ -50,6 +50,9 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao
} }
//移动文件并重命名 //移动文件并重命名
FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true); FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true);
entity.setFilePath(targetPath + fileNewName);
Map<String, String> appPublish = paramService.getParamByFirstOrganize("appPublish"); Map<String, String> appPublish = paramService.getParamByFirstOrganize("appPublish");
String appCode = appPublish.get(entity.getAppName()); String appCode = appPublish.get(entity.getAppName());
...@@ -75,6 +78,7 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao ...@@ -75,6 +78,7 @@ public class AppPublishServiceImpl extends AbstractCRUDServiceImpl<AppPublishDao
} }
//移动文件并重命名 //移动文件并重命名
FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true); FileUtil.move(new File(realFilePath), new File(targetPath + fileNewName), true);
entity.setFilePath(targetPath + fileNewName);
Map<String, String> appPublish = paramService.getParamByFirstOrganize("appPublish"); Map<String, String> appPublish = paramService.getParamByFirstOrganize("appPublish");
String appCode = appPublish.get(entity.getAppName()); String appCode = appPublish.get(entity.getAppName());
......
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