public Pagination<Refund> getRefundList(Pagination<Refund> paging) {
   // 得到总记录数
   paging.setTotal(refundManageMapper.getRefundListCount(paging));
   // 得到结果集
   paging.setResults(refundManageMapper.getRefundList(paging));
   return paging;
 }
 public Order getOrder(String orderNumber) {
   // 定单基本信息
   Order order = orderManageMapper.getOrderByOrderNumber(orderNumber);
   // 初始化消费信息
   List<OrderItem> items = getOrderItemByOrderNumber(orderNumber);
   List<OrderTickets> orderTickets = orderManageMapper.getOrderTicketsByOrderNumber(orderNumber);
   initOrderConsumptionInfo(items, orderTickets);
   // 收货信息
   List<Received> receiveds = receivedManageMapper.getOrderReceivedsByOrderNumber(orderNumber);
   order.setReceiveds(receiveds);
   // 获取订单的已经退款的退款信息
   Refund refund = new Refund();
   refund.setOrderNumber(orderNumber);
   refund.setStatus(StoreOrderStatus.REFUNDED.getCode());
   List<Refund> refunds = refundManageMapper.getRefunds(refund);
   order.setItems(items);
   order.setOrderTickets(orderTickets);
   order.setRefunds(refunds);
   return order;
 }
 public Refund getRefund(String id) {
   return refundManageMapper.getRefund(id);
 }
 /**
  * 用于人工结算
  *
  * @param obj
  */
 public void insertRefundBySettleAccounts(Refund obj) {
   refundManageMapper.insertRefundBySettleAccounts(obj);
 }
 public void updateRefund(Refund obj) {
   refundManageMapper.updateRefund(obj);
 }