You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

30 lines
1.3 KiB

  1. <?php
  2. require_once __DIR__ . '/../HotelLib.php';
  3. /**
  4. * Created by PhpStorm.
  5. * User: Administrator
  6. * Date: 2016/10/9
  7. * Time: 13:18
  8. */
  9. class HTOrderDetail extends HotelLib
  10. {
  11. function getOrderDetail($order_id)
  12. {
  13. $sql = "select a.outside_sale_org_id,(select supplier_name from base_supplier where id = outside_sale_org_id ) as outside_sale_org_name,parent_order_id,order_price,
  14. outside_order_no,order_description,order_status,(select type_name from dict_type where id = order_status) as order_status_name,parent_prod_name,prod_name,
  15. run_time,prod_start_station_date as start_date,prod_end_station_date as end_date,customer_name,customer_mobile,customer_memo,order_confirm_code,stock_type,profit_value,total_commission
  16. from order_main a
  17. where (order_id = $order_id or parent_order_id in ($order_id)) and a.order_prod_type in (25,26) and cancel_flag = 0";
  18. $rowset = $this->DBTool->queryBySql($sql);
  19. $data['code'] = $rowset['code'];
  20. $data['info'] = $rowset['info'];
  21. $sql = "select id,true_name from base_user";
  22. $data['user'] = $this->DBTool->queryBySql($sql);
  23. $data['data'] = $rowset['rowset'];
  24. return $data;
  25. }
  26. }
  27. //$OBJ = new HTOrderDetail();
  28. //$data =$OBJ ->getOrderDetail();
  29. //echo json_encode($data);