feat:初始数据修复

V0.5.x
xiwa 2024-02-19 12:34:53 +08:00
parent 35e0610eb8
commit 85988e297f
2 changed files with 3317 additions and 181 deletions

File diff suppressed because it is too large Load Diff

View File

@ -231,6 +231,7 @@ public class SysConfigServiceImpl implements ISysConfigService {
writeData(fileDir, "thingModel", SpringUtils.getBean(IThingModelData.class)); writeData(fileDir, "thingModel", SpringUtils.getBean(IThingModelData.class));
writeData(fileDir, "userInfo", SpringUtils.getBean(IUserInfoData.class)); writeData(fileDir, "userInfo", SpringUtils.getBean(IUserInfoData.class));
writeData(fileDir, "virtualDevice", SpringUtils.getBean(IVirtualDeviceData.class)); writeData(fileDir, "virtualDevice", SpringUtils.getBean(IVirtualDeviceData.class));
writeData(fileDir, "pluginInfo", SpringUtils.getBean(IPluginInfoData.class));
String zipPath = fileDir.getAbsolutePath() + ".zip"; String zipPath = fileDir.getAbsolutePath() + ".zip";
ZipUtil.zip(fileDir.getAbsolutePath(), zipPath); ZipUtil.zip(fileDir.getAbsolutePath(), zipPath);
return new File(zipPath); return new File(zipPath);