Beispiel #1
0
 public String order() {
   System.out.println("act=" + act);
   Map session = ActionContext.getContext().getSession();
   Account ac = (Account) session.get("account");
   if (act == 0) {
     orderService.addOrder(order, ticketId, ac.getId());
   } else if (act == 1) {
     order.setId(ordId);
     order.setAccount(ac);
     Ticket ticket = ticketServiceImpl.findTicketById(ticketId);
     order.setTicket(ticket);
     System.out.println(order.getId());
     orderService.uptOrder(order);
   }
   load();
   return "success";
 }
Beispiel #2
0
  public String editOrder() {

    order = orderService.findOrderById(ordId);
    ordId = order.getId();
    orderId = order.getOrderId();
    email = order.getEmail();
    tel = order.getTel();
    orderTime = order.getOrderTime();
    orderUseTime = order.getTicUseTime();
    account = order.getAccount();
    return "success";
  }