|
- <?php
- require_once __DIR__ . '/../HotelLib.php';
-
- /**
- * Created by PhpStorm.
- * User: luocj
- * Date: 2016/12/16
- * Time: 13:50
- */
- class LibSuppSaleInfo extends HotelLib
- {
- function getSuppList()
- {
- $sql = "select id,supplier_name from base_supplier where supplier_type = 187 and cancel_flag = 0";
- writeLog('供应商列表' . $sql);
- $rowset = $this->DBTool->queryBySql($sql);
- $data['code'] = $rowset['code'];
- $data['info'] = $rowset['info'];
- $data['rowset'] = $rowset['rowset'];
- return $data;
- }
-
- function getSaleList()
- {
- $sql = "select id,supplier_name as sale_org_name from base_supplier where supplier_type = 301 and cancel_flag = 0";
- writeLog('渠道商列表' . $sql);
- $rowset = $this->DBTool->queryBySql($sql);
- $data['code'] = $rowset['code'];
- $data['info'] = $rowset['info'];
- $data['rowset'] = $rowset['rowset'];
- return $data;
- }
- }
|