int departmentUid = Integer.parseInt(request.getParameter(Commands.SHOW_GOODS_DEPARTMENT));
goodsList = goodsDepDao.findEntitiesByDepartment(departmentUid);
break;
default:
AbstractDao<Goods> abstrGoodsDao = new GoodsDao();
goodsList = abstrGoodsDao.findAll();
break;
}
} catch (DaoException e) {
log.error("Was not able to get goods data", e);
}