checkModifyPermission();
List<Language> languages = languageAdminModel.getList(new PageParam());
List<OrderStatus> list = new ArrayList<OrderStatus>();
for(Language language: languages){
OrderStatus orderStatus = new OrderStatus();
orderStatus.setLanguageId(language.getId());
orderStatus.setLanguageName(language.getName());
orderStatus.setLanguageImage(language.getImage());
list.add(orderStatus);
}
OrderStatuses orderStatuses = new OrderStatuses(list);
orderStatuses.setNewEntities(true);
model.addAttribute("orderStatuses", orderStatuses);