System.out.println(result);
result = departmentManagementService.queryAllDepartments();
System.out.println(result);
}
public void testEnergyMedia(){
EnergyMediaManagementService energyMediaManagementService = (EnergyMediaManagementService)StorageService.ctx.getBean("EnergyMediaManagementService");
OperResult result = energyMediaManagementService.queryAllEnergyMedia();
System.out.println(result);
HashMap properties = new HashMap();
properties.put("name", "另外一种介质类型");
properties.put("description", "另外一种介质类型的描述");
result = energyMediaManagementService.addEnergyMedia_Base(properties);
System.out.println(result);
result = energyMediaManagementService.queryAllEnergyMedia();
System.out.println(result);
}