Examples of removeOrderProduct()


Examples of com.lgx8.gateway.entities.Orders.removeOrderProduct()

    List<Orders> orderList = orderService.queryOrders(hql, new Object[]{Long.valueOf(orderid.trim())});
    if(null!=orderList&&orderList.size()>0){
      Orders order = orderList.get(0);
      int id = Integer.parseInt(orderProductId.trim());
      OrderProduct op = order.getOrderProduct(id);
      order.removeOrderProduct(id);
      boolean ok = orderService.updateOrder(order);
      orderProductDao.deleteOrderProduct(op);
      if(ok){
        printResult(response,"ok");
      }else{
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.