Example #1
0
 @RequestMapping(value = "/createOrder")
 public String createOrder(RedirectAttributes redirectAttributes, ModelMap model) {
   HttpSession session = getSession();
   Row staff = (Row) session.getAttribute("staff");
   if (staff == null) {
     addFlashMessage(redirectAttributes, Message.error("请先登录"));
     return "redirect:/login/ShopLogin.do";
   }
   return "/cxhlpage/shop/coupon/CreateOrder";
 }
Example #2
0
 /**
  * 分页查询
  *
  * @param pageable
  * @param model
  * @return
  */
 @RequestMapping(value = "/list")
 public String list(Pageable pageable, RedirectAttributes redirectAttributes, ModelMap model) {
   HttpSession session = getSession();
   Row staff = (Row) session.getAttribute("staff");
   if (staff == null) {
     addFlashMessage(redirectAttributes, Message.error("请先登录"));
     return "redirect:/login/ShopLogin.do";
   }
   String shop_id = staff.getString("shop_id", "");
   userCouponService.getRow().put("pageable", pageable);
   Page page = userCouponService.queryPageForShopAdmin(pageable, shop_id);
   model.addAttribute("page", page);
   return "/cxhlpage/shop/coupon/list";
 }