private
Map<String, Object> getShopManagementInfo(HttpServletRequest request) {
Map<String, Object> modelMap =
new
HashMap<String, Object>();
long
shopId = HttpServletRequestUtil.getLong(request,
"shopId"
);
if
(shopId <=
0
) {
Object currentShopObj = request.getSession().getAttribute(
"currentShop"
);
if
(currentShopObj ==
null
) {
modelMap.put(
"redirect"
,
true
);
modelMap.put(
"url"
,
"/o2o/shopadmin/shoplist"
);
}
else
{
Shop currentShop = (Shop) currentShopObj;
modelMap.put(
"redirect"
,
false
);
modelMap.put(
"shopId"
, currentShop.getShopId());
}
}
else
{
Shop currentShop =
new
Shop();
currentShop.setShopId(shopId);
request.getSession().setAttribute(
"currentShop"
, currentShop);
modelMap.put(
"shopId"
, shopId);
modelMap.put(
"redirect"
,
false
);
}
return
modelMap;
}