Esempio n. 1
0
 public String updateStateShop() {
   String shopId = ServletActionContext.getRequest().getParameter("shopId");
   Shop shop = shopService.get(Integer.parseInt(shopId));
   if (shop.getShopstate().equals("0")) {
     shop.setShopstate("1");
   } else {
     shop.setShopstate("0");
   }
   shopService.update(shop);
   jsonMap.put("data", "right");
   return "json";
 }