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.
 
 
 
 

33 lines
972 B

  1. <?php
  2. require_once __DIR__ . '/../HotelLib.php';
  3. /**
  4. * Created by PhpStorm.
  5. * User: luocj
  6. * Date: 2016/12/16
  7. * Time: 13:50
  8. */
  9. class LibSuppSaleInfo extends HotelLib
  10. {
  11. function getSuppList()
  12. {
  13. $sql = "select id,supplier_name from base_supplier where supplier_type = 187 and cancel_flag = 0";
  14. writeLog('供应商列表' . $sql);
  15. $rowset = $this->DBTool->queryBySql($sql);
  16. $data['code'] = $rowset['code'];
  17. $data['info'] = $rowset['info'];
  18. $data['rowset'] = $rowset['rowset'];
  19. return $data;
  20. }
  21. function getSaleList()
  22. {
  23. $sql = "select id,supplier_name as sale_org_name from base_supplier where supplier_type = 301 and cancel_flag = 0";
  24. writeLog('渠道商列表' . $sql);
  25. $rowset = $this->DBTool->queryBySql($sql);
  26. $data['code'] = $rowset['code'];
  27. $data['info'] = $rowset['info'];
  28. $data['rowset'] = $rowset['rowset'];
  29. return $data;
  30. }
  31. }