|
1234567891011121314151617181920212223242526272829 |
- <?php
- require_once __DIR__ . '/../HotelLib.php';
- /**
- * Created by PhpStorm.
- * User: Administrator
- * Date: 2016/10/9
- * Time: 13:18
- */
- class HTOrderDetail extends HotelLib
- {
- function getOrderDetail($order_id)
- {
- $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,
- 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,
- 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
- from order_main a
- where (order_id = $order_id or parent_order_id in ($order_id)) and a.order_prod_type in (25,26) and cancel_flag = 0";
- $rowset = $this->DBTool->queryBySql($sql);
- $data['code'] = $rowset['code'];
- $data['info'] = $rowset['info'];
- $sql = "select id,true_name from base_user";
- $data['user'] = $this->DBTool->queryBySql($sql);
- $data['data'] = $rowset['rowset'];
- return $data;
- }
- }
- //$OBJ = new HTOrderDetail();
- //$data =$OBJ ->getOrderDetail();
- //echo json_encode($data);
|