|
|
@@ -26,11 +26,11 @@ public class DataLoaderRunner implements CommandLineRunner {
|
|
|
DataSourceUtil.setDB("oa");
|
|
|
Company company = companyService.getCompany();
|
|
|
Group defaultGroup = groupService.getDefaultGroup();
|
|
|
- Map map = new HashMap<>();
|
|
|
+ Map<String, Object> map = new HashMap<>();
|
|
|
map.put("company",company);
|
|
|
map.put("defaultGroup",defaultGroup);
|
|
|
// 使用DataService来存储数据
|
|
|
DataService.setConstantData(map);
|
|
|
DataSourceUtil.setDB("v2");
|
|
|
}
|
|
|
-}
|
|
|
+}
|